symtable works but not multiple variable

This commit is contained in:
Minh VU
2025-04-05 13:41:23 +02:00
parent 56df584b9f
commit bc7d1045ee
17 changed files with 104 additions and 1653 deletions

View File

@@ -54,6 +54,10 @@ ParO: '('
;
ParF: ')'
;
BacO: '{'
;
BacF: '}'
;
PLUS: '+'
;
MINUS: '-'
@@ -64,9 +68,11 @@ TIMES: '*'
;
MOD: '%'
;
VIRGULE: ','
;
IDENT: ('a'..'z'|'A'..'Z')('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'-')*
;
WS : (' '|'\n'|'\t') { skip(); }
WS : (' '|'\n'|'\t'| '\r') { skip(); }
;
COMMENT : '//' (~'\n')* { skip(); }