change lexer and parser. tested

This commit is contained in:
Vu Tuan Minh
2025-04-07 19:17:07 +02:00
parent e78c531c56
commit 425e2d4088
3 changed files with 40 additions and 64 deletions

View File

@@ -38,7 +38,7 @@ PRINT : 'PRINT'
;
RETURN: 'RETURN'
;
TEXT : '"' (ASCII)+ '"' {getText().substring(1,getText().length()-1);}
TEXT : '"' (ASCII)+ '"'
;
NUMBER : (DIGIT)+
;