stage1_2/iec.y
changeset 10 66f4f7f85d0a
parent 5 8860f9917bbc
child 13 77174ccc5471
equal deleted inserted replaced
9:ebd07483c099 10:66f4f7f85d0a
  3728 | SL		{$$ = new timed_qualifier_c(strdup("SL"));}
  3728 | SL		{$$ = new timed_qualifier_c(strdup("SL"));}
  3729 ;
  3729 ;
  3730 
  3730 
  3731 action_time:
  3731 action_time:
  3732   duration
  3732   duration
  3733 | variable_name
  3733 | variable
  3734 //| transition_name
  3734 ;
  3735 ;
  3735 
  3736 
  3736 indicator_name: variable;
  3737 indicator_name: variable_name;
       
  3738 
  3737 
  3739 transition_name: identifier;
  3738 transition_name: identifier;
  3740 
  3739 
  3741 steps:
  3740 steps:
  3742   step_name
  3741   step_name
  3762 | TRANSITION transition_name '(' PRIORITY ASSIGN integer ')' FROM steps TO steps
  3761 | TRANSITION transition_name '(' PRIORITY ASSIGN integer ')' FROM steps TO steps
  3763 	{$$.first = $2; $$.second = $6; $$.third = $9; $$.fourth = $11; cmd_goto_body_state();}
  3762 	{$$.first = $2; $$.second = $6; $$.third = $9; $$.fourth = $11; cmd_goto_body_state();}
  3764 ;
  3763 ;
  3765 
  3764 
  3766 transition_condition_il:
  3765 transition_condition_il:
  3767   ':' simple_instr_list
  3766   ':' eol_list simple_instr_list
  3768 	{$$ = new transition_condition_c($2, NULL);} ;
  3767 	{$$ = new transition_condition_c($3, NULL);}
       
  3768 ;
  3769 
  3769 
  3770 transition_condition_st:
  3770 transition_condition_st:
  3771   ASSIGN expression ';'
  3771   ASSIGN expression ';'
  3772 	{$$ = new transition_condition_c(NULL, $2);};
  3772 	{$$ = new transition_condition_c(NULL, $2);}
       
  3773 ;
  3773 
  3774 
  3774 transition:
  3775 transition:
  3775   transition_header transition_condition_il END_TRANSITION
  3776   transition_header transition_condition_il END_TRANSITION
  3776         {$$ = new transition_c($1.first, $1.second, $1.third, $1.fourth, $2, NULL);}
  3777         {$$ = new transition_c($1.first, $1.second, $1.third, $1.fourth, $2, NULL);}
  3777 |  transition_header transition_condition_st END_TRANSITION
  3778 |  transition_header transition_condition_st END_TRANSITION