Skip to content

Commit

Permalink
revision
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeStanleySEL committed May 3, 2024
1 parent e1b0601 commit e35f228
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion blark/iec.lark
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ structure_type_declaration: structure_type_name_declaration [ extends ] ":" [ in

initialized_structure: structure_type_name ":=" structure_initialization

structure_element_declaration: structure_element_name [ incomplete_location ] ":" ( initialized_structure | array_spec_init | simple_spec_init | subrange_spec_init | enumerated_spec_init | function_call )
structure_element_declaration: var1_list ":" ( initialized_structure | array_spec_init | simple_spec_init | subrange_spec_init | enumerated_spec_init | function_call )

union_element_declaration: structure_element_name ":" ( array_specification | simple_specification | indirect_simple_specification | subrange_specification | enumerated_specification )

Expand Down
12 changes: 5 additions & 7 deletions blark/tests/source/repeated_declaration.st
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
METHOD doSomethingCool : BOOL
VAR_INPUT
AlertTimer, SignalBadTimer : library.TPUDO;
END_VAR

// do some stuff
END_METHOD
TYPE someStruct :
STRUCT
AlertTimer, SignalBadTimer, QualityBadTimer : library.TPUDO;
END_STRUCT
END_TYPE
1 change: 0 additions & 1 deletion blark/tests/test_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ def test_bool_literal_roundtrip(name, value, expected):
param("expression", "_directoryFileList.Item(_i).ToString()"),
param("expression", "_directoryFileList.Item(_i)^.ToString()"),
param("simple_type_declaration", "TypeName : INT"),
param("simple_type_declaration", "TypeName, TypeName2 : INT"),
param("simple_type_declaration", "TypeName : INT := 5"),
param("simple_type_declaration", "TypeName : INT := 5 + 1 * (2)"),
param("simple_type_declaration", "TypeName : REFERENCE TO INT"),
Expand Down

0 comments on commit e35f228

Please sign in to comment.