stage1_2/iec.y
changeset 258 d7d92b2f87e9
parent 257 90782e241346
parent 239 b3063ca418c1
child 264 6facabd9c2cd
equal deleted inserted replaced
257:90782e241346 258:d7d92b2f87e9
  3627   /* NOTE We do _NOT_ include this variable in the previously_declared_variable symbol table!
  3627   /* NOTE We do _NOT_ include this variable in the previously_declared_variable symbol table!
  3628    *      Please read the comment above the definition of 'variable' for the reason for this.
  3628    *      Please read the comment above the definition of 'variable' for the reason for this.
  3629    */
  3629    */
  3630   {$$ = new eno_param_declaration_c($1, new bool_type_name_c(locloc(@$)), new explicit_definition_c(), locloc(@$));}
  3630   {$$ = new eno_param_declaration_c($1, new bool_type_name_c(locloc(@$)), new explicit_definition_c(), locloc(@$));}
  3631 /* ERROR_CHECK_BEGIN */
  3631 /* ERROR_CHECK_BEGIN */
  3632 | en_identifier BOOL
  3632 | eno_identifier BOOL
  3633 	{$$ = NULL; print_err_msg(locl(@1), locf(@2), "':' missing between variable list and specification in ENO declaration."); yynerrs++;}
  3633 	{$$ = NULL; print_err_msg(locl(@1), locf(@2), "':' missing between variable list and specification in ENO declaration."); yynerrs++;}
  3634 | en_identifier ':' error
  3634 | eno_identifier ':' error
  3635 	{$$ = NULL;
  3635 	{$$ = NULL;
  3636 	 if (is_current_syntax_token()) {print_err_msg(locl(@2), locf(@3), "no specification defined in ENO declaration.");}
  3636 	 if (is_current_syntax_token()) {print_err_msg(locl(@2), locf(@3), "no specification defined in ENO declaration.");}
  3637 	 else {print_err_msg(locf(@3), locl(@3), "invalid specification in ENO declaration."); yyclearin;}
  3637 	 else {print_err_msg(locf(@3), locl(@3), "invalid specification in ENO declaration."); yyclearin;}
  3638 	 yyerrok;
  3638 	 yyerrok;
  3639 	}
  3639 	}
  6681 /*  variable_name ASSIGN */
  6681 /*  variable_name ASSIGN */
  6682   any_identifier ASSIGN
  6682   any_identifier ASSIGN
  6683 	{$$ = new il_assign_operator_c($1, locloc(@$));}
  6683 	{$$ = new il_assign_operator_c($1, locloc(@$));}
  6684 | en_identifier ASSIGN
  6684 | en_identifier ASSIGN
  6685 	{$$ = new il_assign_operator_c($1, locloc(@$));}
  6685 	{$$ = new il_assign_operator_c($1, locloc(@$));}
       
  6686 | S1_operator ASSIGN
       
  6687 	{$$ = new il_assign_operator_c(il_operator_c_2_identifier_c($1), locloc(@$));}
       
  6688 | R1_operator ASSIGN
       
  6689 	{$$ = new il_assign_operator_c(il_operator_c_2_identifier_c($1), locloc(@$));}
       
  6690 | CLK_operator ASSIGN
       
  6691 	{$$ = new il_assign_operator_c(il_operator_c_2_identifier_c($1), locloc(@$));}
       
  6692 | CU_operator ASSIGN
       
  6693 	{$$ = new il_assign_operator_c(il_operator_c_2_identifier_c($1), locloc(@$));}
       
  6694 | CD_operator ASSIGN
       
  6695 	{$$ = new il_assign_operator_c(il_operator_c_2_identifier_c($1), locloc(@$));}
       
  6696 | PV_operator ASSIGN
       
  6697 	{$$ = new il_assign_operator_c(il_operator_c_2_identifier_c($1), locloc(@$));}
       
  6698 | IN_operator ASSIGN
       
  6699 	{$$ = new il_assign_operator_c(il_operator_c_2_identifier_c($1), locloc(@$));}
       
  6700 | PT_operator ASSIGN
       
  6701 	{$$ = new il_assign_operator_c(il_operator_c_2_identifier_c($1), locloc(@$));}
  6686 /* ERROR_CHECK_BEGIN */
  6702 /* ERROR_CHECK_BEGIN */
  6687 | error ASSIGN
  6703 | error ASSIGN
  6688   {$$ = NULL; print_err_msg(locf(@1), locl(@1), "invalid parameter defined in parameter assignment."); yyerrok;}
  6704   {$$ = NULL; print_err_msg(locf(@1), locl(@1), "invalid parameter defined in parameter assignment."); yyerrok;}
  6689 /* ERROR_CHECK_END */
  6705 /* ERROR_CHECK_END */
  6690 ;
  6706 ;