ready to build ast

This commit is contained in:
2024-08-07 04:58:29 +00:00
parent 09e5080193
commit f1eb6abcc1
8 changed files with 2023 additions and 969 deletions

View File

@ -72,7 +72,7 @@ ID: [a-zA-Z][a-zA-Z_0-9]*;
// Literals
INT_LITERAL: [0-9]+;
STRING_LITERAL: '"' (ESC|~["\\])*? '"';
fragment ESC : '\\"' | '\\\\';
fragment ESC : '\\n'| '\\"' | '\\\\';
// Whitespace and comments
WS: [ \t\r\n]+ -> skip;