mirror of
https://github.com/mudabbir-ahmad/UNI-PROG3-CW2-DYOPL.git
synced 2026-10-08 04:00:20 +00:00
Add TreesUser class for improved tree representation and update grammar rules
This commit is contained in:
1 parent
5b36426dc4
commit
ad6935723e
3 files changed
+33
-8
No files matched your search
@@ -18,6 +18,6 @@ logStat: 'LOG' STRING ';' ;
|
||||
repeatStat: 'REPEAT' NUMBER '{' stat+ '}' ;
|
||||
|
||||
ID_PREFIX: '// STUDENT ID:' ;
|
||||
NUMBER: [0-9]+ ;
|
||||
STRING: '"' .*? '"' {self.text = self.text[1:-1]} ;
|
||||
NUMBER: [1-9]+ ;
|
||||
STRING: '"' .*? '"' ;
|
||||
WS: [ \t\r\n]+ -> skip ;
|
||||
Reference in new issue
Block a user