stage1_2/iec.y
changeset 311 8fcea60029de
parent 295 e7ce7c6bbb5d
child 315 c62a4078f269
equal deleted inserted replaced
310:f111a6986c22 311:8fcea60029de
  6195 il_instruction:
  6195 il_instruction:
  6196   il_incomplete_instruction eol_list
  6196   il_incomplete_instruction eol_list
  6197 	{$$ = new il_instruction_c(NULL, $1, locloc(@$));}
  6197 	{$$ = new il_instruction_c(NULL, $1, locloc(@$));}
  6198 | label ':' il_incomplete_instruction eol_list
  6198 | label ':' il_incomplete_instruction eol_list
  6199 	{$$ = new il_instruction_c($1, $3, locloc(@$));}
  6199 	{$$ = new il_instruction_c($1, $3, locloc(@$));}
       
  6200 | label ':' eol_list
       
  6201 	{$$ = new il_instruction_c($1, NULL, locloc(@$));}
  6200 /* ERROR_CHECK_BEGIN */
  6202 /* ERROR_CHECK_BEGIN */
  6201 | error eol_list
  6203 | error eol_list
  6202 	{$$ = NULL; print_err_msg(locf(@1), locl(@1), "invalid IL instruction."); yyerrok;}
  6204 	{$$ = NULL; print_err_msg(locf(@1), locl(@1), "invalid IL instruction."); yyerrok;}
  6203 | il_incomplete_instruction error
  6205 | il_incomplete_instruction error
  6204 	{$$ = NULL; print_err_msg(locl(@1), locf(@2), "EOL missing at the end of IL instruction."); yyerrok;}
  6206 	{$$ = NULL; print_err_msg(locl(@1), locf(@2), "EOL missing at the end of IL instruction."); yyerrok;}