stage1_2/iec_bison.yy
changeset 936 0f7bcc160568
parent 934 2a42a68f4b59
child 945 477393b00f95
equal deleted inserted replaced
935:be4373d07201 936:0f7bcc160568
  3404 | identifier
  3404 | identifier
  3405 	{$$ = new symbolic_variable_c($1, locloc(@$));}
  3405 	{$$ = new symbolic_variable_c($1, locloc(@$));}
  3406 */
  3406 */
  3407 | symbolic_variable '^'     
  3407 | symbolic_variable '^'     
  3408 	/* Dereferencing operator defined in IEC 61131-3 v3. However, implemented here differently then how it is defined in the standard! See following note for explanation! */
  3408 	/* Dereferencing operator defined in IEC 61131-3 v3. However, implemented here differently then how it is defined in the standard! See following note for explanation! */
  3409 	{$$ = new deref_expression_c($1, locloc(@$));
  3409 	{$$ = new deref_operator_c($1, locloc(@$));
  3410 	 if (!allow_ref_dereferencing) {
  3410 	 if (!allow_ref_dereferencing) {
  3411 	   print_err_msg(locf(@$), locl(@$), "Derefencing REF_TO datatypes with '^' is not allowed (use -r option to activate support for this IEC 61131-3 v3 feature)."); 
  3411 	   print_err_msg(locf(@$), locl(@$), "Derefencing REF_TO datatypes with '^' is not allowed (use -r option to activate support for this IEC 61131-3 v3 feature)."); 
  3412 	   yynerrs++;
  3412 	   yynerrs++;
  3413 	 }
  3413 	 }
  3414 }
  3414 }