Clean up and fix Antlr Parser module

This commit is contained in:
2020-06-03 10:07:51 +02:00
parent ef7bb13422
commit 620b6e35bd
36 changed files with 297 additions and 975 deletions

View File

@@ -22,6 +22,7 @@ options {
tokens {
ID;
INTCONST;
FLOATCONST;
WS;
}
@@ -35,6 +36,7 @@ ID: ('a'..'z' | 'A'..'Z')
greedy = true; // Lese alle möglichen Zeichen ein -> Zahlen in ID -> bleibt weiterhin ID
}: 'a'..'z' | 'A'..'Z' | '0'..'9')*;
INTCONST: ('0'..'9')+;
FLOATCONST: INTCONST '.' INTCONST;
WS: ('\t' | ' ' | '\r' | '\n' | '\f')+ { skip(); };