Skip to content

Commit

Permalink
Fixes #24 - Add tokenizing left curly brace
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem committed Apr 20, 2024
1 parent 217194b commit d0955b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lexer/src/main/antlr4/Bengal.g4
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
grammar Bengal;

eval
: (classKeyword | ifKeyword) EOF
: (classKeyword | ifKeyword | leftCurly ) EOF
;

classKeyword
Expand All @@ -10,4 +10,8 @@ classKeyword

ifKeyword
: 'if'
;

leftCurly
: '{'
;

0 comments on commit d0955b5

Please sign in to comment.