Skip to content

Commit

Permalink
Support inboundBranch Label.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoder committed Oct 5, 2024
1 parent 81a8840 commit 79fd188
Show file tree
Hide file tree
Showing 5 changed files with 484 additions and 360 deletions.
8 changes: 6 additions & 2 deletions src/g4/activityParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ ifBlock
;

elseIfBlock
: ELSEIF condition THEN? branchLabel? (statement | ARROW)*
: inboundBranchLabel? ELSEIF condition THEN? branchLabel? (statement | ARROW)*
;

elseBlock
: (ELSE branchLabel? (statement | ARROW)*)
: inboundBranchLabel? ELSE branchLabel? (statement | ARROW)*
;

switchStatement
Expand Down Expand Up @@ -137,6 +137,10 @@ conditionContent
: (ACTIVITY_LABEL | ACTIVITY_CONTENT)+
;

inboundBranchLabel
: LPAREN ACTIVITY_LABEL RPAREN
;

branchLabel
: LPAREN ACTIVITY_LABEL RPAREN
;
Expand Down
Loading

0 comments on commit 79fd188

Please sign in to comment.