stage1_2/iec.flex
changeset 86 1988bf1634da
parent 84 a74c279f0a2e
child 131 f55ef301e14c
equal deleted inserted replaced
85:a6e651ba55c2 86:1988bf1634da
   369 %s sfc_state
   369 %s sfc_state
   370 
   370 
   371 /* we are parsing sfc code, and expecting an action qualifier.      */
   371 /* we are parsing sfc code, and expecting an action qualifier.      */
   372 %s sfc_qualifier_state
   372 %s sfc_qualifier_state
   373 
   373 
       
   374 /* we are parsing sfc code, and expecting the priority token.       */
       
   375 %s sfc_priority_state
   374 
   376 
   375 
   377 
   376 
   378 
   377 
   379 
   378 /*******************/
   380 /*******************/
   689 	}
   691 	}
   690 
   692 
   691 	if (get_goto_sfc_qualifier_state()) {
   693 	if (get_goto_sfc_qualifier_state()) {
   692 	  yy_push_state(sfc_qualifier_state);
   694 	  yy_push_state(sfc_qualifier_state);
   693 	  rst_goto_sfc_qualifier_state();
   695 	  rst_goto_sfc_qualifier_state();
       
   696 	}
       
   697 
       
   698 	if (get_goto_sfc_priority_state()) {
       
   699 	  yy_push_state(sfc_priority_state);
       
   700 	  rst_goto_sfc_priority_state();
   694 	}
   701 	}
   695 
   702 
   696 	if (get_goto_task_init_state()) {
   703 	if (get_goto_task_init_state()) {
   697 	  yy_push_state(task_init_state);
   704 	  yy_push_state(task_init_state);
   698 	  rst_goto_task_init_state();
   705 	  rst_goto_task_init_state();
  1179 
  1186 
  1180 	/* PRIORITY is not a keyword, so we only return it when 
  1187 	/* PRIORITY is not a keyword, so we only return it when 
  1181 	 * it is explicitly required and we are not expecting any identifiers
  1188 	 * it is explicitly required and we are not expecting any identifiers
  1182 	 * that could also use the same letter sequence (i.e. an identifier: piority)
  1189 	 * that could also use the same letter sequence (i.e. an identifier: piority)
  1183 	 */
  1190 	 */
  1184 <sfc_state>PRIORITY	return PRIORITY;
  1191 <sfc_priority_state>PRIORITY	return PRIORITY;
  1185 
  1192 
  1186 <sfc_qualifier_state>{
  1193 <sfc_qualifier_state>{
  1187 L		return L;
  1194 L		return L;
  1188 D		return D;
  1195 D		return D;
  1189 SD		return SD;
  1196 SD		return SD;