add bool literal

This commit is contained in:
2020-01-20 15:26:55 +01:00
parent 1095d9dd83
commit 1186bb4550
12 changed files with 88 additions and 4 deletions

View File

@@ -78,7 +78,8 @@ expression
atom
: INTEGER_LITERAL #intAtom
| IDENT # variable
| BOOLEAN_LITERAL #boolAtom
| IDENT #variable
;
functionCall
@@ -137,6 +138,11 @@ INTEGER_LITERAL
: [0-9]+
;
BOOLEAN_LITERAL
: 'true'
| 'false'
;
IDENT
: [a-zA-Z][a-zA-Z0-9]*
;