stage1_2/iec_bison.yy
changeset 909 8b2a31dea131
parent 894 39086e324665
child 919 8da635655f37
equal deleted inserted replaced
908:9e8e1ba5ca46 909:8b2a31dea131
  3207 | prev_declared_ref_type_name 
  3207 | prev_declared_ref_type_name 
  3208 ;
  3208 ;
  3209 
  3209 
  3210 
  3210 
  3211 ref_spec_init: /* defined in IEC 61131-3 v3 */
  3211 ref_spec_init: /* defined in IEC 61131-3 v3 */
  3212   ref_spec  /* For the moment, we do not support initialising reference data types */
  3212   ref_spec
       
  3213 	{$$ = new ref_spec_init_c($1, NULL, locloc(@$));}
       
  3214 /*  For the moment, we do not support initialising reference data types...
       
  3215 | ref_spec ASSIGN ... 
       
  3216 	{$$ = new ref_spec_init_c($1, $3, locloc(@$));}
       
  3217 */
  3213 ;
  3218 ;
  3214 
  3219 
  3215 ref_type_decl:  /* defined in IEC 61131-3 v3 */
  3220 ref_type_decl:  /* defined in IEC 61131-3 v3 */
  3216   identifier ':' ref_spec_init
  3221   identifier ':' ref_spec_init
  3217 	{$$ = new ref_type_decl_c($1, $3, locloc(@$));
  3222 	{$$ = new ref_type_decl_c($1, $3, locloc(@$));