stage1_2/iec_bison.yy
changeset 417 d48f53715f77
parent 415 5c115720149c
child 453 4733f662362a
equal deleted inserted replaced
416:0c2ef191b22a 417:d48f53715f77
  2789 | signed_integer signed_integer
  2789 | signed_integer signed_integer
  2790 	{$$ = NULL; print_err_msg(locl(@1), locf(@2), "'..' missing between bounds in subrange definition."); yynerrs++;}
  2790 	{$$ = NULL; print_err_msg(locl(@1), locf(@2), "'..' missing between bounds in subrange definition."); yynerrs++;}
  2791 | signed_integer DOTDOT error
  2791 | signed_integer DOTDOT error
  2792 	{$$ = NULL;
  2792 	{$$ = NULL;
  2793 	 if (is_current_syntax_token()) {print_err_msg(locl(@2), locf(@3), "no value defined for upper bound in subrange definition.");}
  2793 	 if (is_current_syntax_token()) {print_err_msg(locl(@2), locf(@3), "no value defined for upper bound in subrange definition.");}
  2794 	 else {print_err_msg(locf(@3), locl(@3), "invalid value for upper bound in subrange definition."); yyclearin;}
  2794 	 else {print_err_msg(locf(@3), locl(@3), "invalid value for lower bound in subrange definition."); yyclearin;}
  2795 	 yyerrok;
  2795 	 yyerrok;
  2796 	}
  2796 	}
  2797 /* ERROR_CHECK_END */
  2797 /* ERROR_CHECK_END */
  2798 ;
  2798 ;
  2799 
  2799