464 * the standard syntax. |
464 * the standard syntax. |
465 */ |
465 */ |
466 /* function_block_type_name ASSIGN structure_initialization */ |
466 /* function_block_type_name ASSIGN structure_initialization */ |
467 /* structure_initialization -> may be NULL ! */ |
467 /* structure_initialization -> may be NULL ! */ |
468 SYM_REF2(fb_spec_init_c, function_block_type_name, structure_initialization) |
468 SYM_REF2(fb_spec_init_c, function_block_type_name, structure_initialization) |
|
469 |
|
470 |
|
471 /* Taken fron IEC 61131-3 v3 |
|
472 * // Table 14 - Reference operations |
|
473 * Ref_Type_Decl : Ref_Type_Name ':' Ref_Spec_Init ; |
|
474 * Ref_Spec_Init : Ref_Spec ( ':=' Ref_Value )? ; |
|
475 * Ref_Spec : 'REF_TO' Non_Gen_Type_Name ; |
|
476 * Ref_Type_Name : Identifier ; |
|
477 * Ref_Name : Identifier ; |
|
478 * Ref_Value : Ref_Addr | 'NULL' ; |
|
479 * Ref_Addr : 'REF' '(' (Symbolic_Variable | FB_Name | Class_Instance_Name ) ')' ; |
|
480 * Ref_Assign : Ref_Name ':=' (Ref_Name | Ref_Deref | Ref_Value ) ; |
|
481 * Ref_Deref : 'DREF' '(' Ref_Name ')' ; |
|
482 */ |
|
483 |
|
484 /* ref_spec: REF_TO (non_generic_type_name | function_block_type_name) */ |
|
485 SYM_REF1(ref_spec_c, type_name) |
|
486 |
|
487 /* For the moment, we do not support initialising reference data types */ |
|
488 /* ref_spec_init: ref_spec; */ |
|
489 /* SYM_REF0(ref_spec_init_c) */ |
|
490 |
|
491 /* ref_type_decl: identifier ':' ref_spec_init */ |
|
492 SYM_REF2(ref_type_decl_c, ref_type_name, ref_spec_init) |
469 |
493 |
470 |
494 |
471 /*********************/ |
495 /*********************/ |
472 /* B 1.4 - Variables */ |
496 /* B 1.4 - Variables */ |
473 /*********************/ |
497 /*********************/ |