Add project files
build / linux-clang (push) Canceled after 0s
build / linux-gcc (push) Canceled after 0s
build / macos-clang (push) Canceled after 0s
build / windows-mingw (push) Canceled after 0s
build / windows-msvc (push) Canceled after 0s

This commit is contained in:
alejo committed 2026-10-07 00:25:24 -03:00
commit ba5971a788
37 files changed
+11180

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
parser grammar CalcParser;
options { tokenVocab = CalcLexer; }
program : statement* EOF ;
statement : IDENT ASSIGN expression SEMI ;
expression
: expression (STAR | SLASH) expression
| expression (PLUS | MINUS) expression
| LPAREN expression RPAREN
| NUMBER
| IDENT
;