Skip to content

Commit

Permalink
refactor(parser): do not allow () {xxx} for section.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoder committed Dec 16, 2024
1 parent 2b8a9ac commit a089ac5
Show file tree
Hide file tree
Showing 2 changed files with 448 additions and 454 deletions.
6 changes: 3 additions & 3 deletions src/g4/sequenceParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ critical

// section(name) {}
section
: SECTION? (OPAR atom? CPAR)? braceBlock
| braceBlock // allows anonymous section. This is mostly for error tolerance (e.g. ref(x) { m1 }).
| SECTION
: SECTION (OPAR atom? CPAR)? braceBlock
| braceBlock // allows anonymous section. This is mostly for error tolerance (e.g. ref(x) { m1 }).
| SECTION // Error tolerance for incomplete section
;

creation
Expand Down
Loading

0 comments on commit a089ac5

Please sign in to comment.