Rewrote grammar, implemented two visitors

This commit is contained in:
Marvin Kaiser
2019-10-29 09:51:43 +01:00
parent ea248733d0
commit 64c41122d0
11 changed files with 539 additions and 103 deletions

View File

@@ -1,4 +1,14 @@
INTEGER_LITERAL=1
MULT=2
WS=3
'*'=2
PRINT=1
SCOL=2
MULT=3
ADD=4
SUB=5
MOD=6
INTEGER_LITERAL=7
WS=8
'print'=1
';'=2
'*'=3
'+'=4
'-'=5
'%'=6