Skip to content

Commit

Permalink
Update grammar to require point after then block in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
stoeffn committed Feb 6, 2018
1 parent 002c138 commit 3fb131d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Antlr/Pseudo.g4
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ assignment
// Conditions

condition
: IF expression THEN blockList (ELSE blockList)? POINT
: IF expression THEN blockList POINT (ELSE blockList POINT)?
;

// Loops
Expand Down
3 changes: 3 additions & 0 deletions Antlr/test.pseudo
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
true;
S.first()[1].test();

algorithm empty():
.

if not true then
return S.

Expand Down

0 comments on commit 3fb131d

Please sign in to comment.