Updated test cases

Added string literal support for expressions
expression_parsing.sync-conflict-20210316-090018-O3W7KWN
Tristan B. V. Kildaire 2021-03-03 18:18:08 +02:00
parent 7a2ee46cdb
commit da79f7f1d5
2 changed files with 9 additions and 1 deletions

View File

@ -189,6 +189,12 @@ public final class Parser
} }
} }
/* If it is a string literal */
else if(symbol == SymbolType.STRING_LITERAL)
{
/* Get the next token */
nextToken();
}
else else
{ {
@ -276,7 +282,8 @@ public final class Parser
} }
else else
{ {
// gprintln("Error"); gprintln("parse(): Geen idee", DebugType.ERROR);
exit(0);
} }
} }
} }

View File

@ -5,5 +5,6 @@ ubyte k = 1;
void main(int hello) void main(int hello)
{ {
ubyte thing = "Hello";
print("Hello world"); print("Hello world");
} }