Skip to content

Commit

Permalink
updating grammar for swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
mbellotti committed Feb 23, 2023
1 parent b930291 commit 0a7fdda
Show file tree
Hide file tree
Showing 6 changed files with 1,228 additions and 856 deletions.
8 changes: 6 additions & 2 deletions grammar/FaultParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ sysClause
;

globalDecl
: 'global' IDENT '=' operand eos
: 'global' IDENT '=' operand eos (swap eos)?
;

swap
: operand '=' (functionLit | numeric | string_ | bool_ | operandName | prefix | solvable)
;

componentDecl
Expand Down Expand Up @@ -227,7 +231,7 @@ stateBlock
;

stateStep
: paramCall ('|' paramCall)* eos #stateStepExpr
: paramCall ('|' paramCall)? eos #stateStepExpr
| stateChange eos #stateChain
| ifStmtState #stateExpr
;
Expand Down

0 comments on commit 0a7fdda

Please sign in to comment.