Added `addInstr()` for StringExpression handling (String literals)

Bug fixed whenever a "" is encountered
This commit is contained in:
Tristan B. Velloza Kildaire 2022-07-25 19:30:40 +02:00
parent 415538f54a
commit 6cfca2cea2
1 changed files with 6 additions and 0 deletions

View File

@ -284,6 +284,12 @@ public final class TypeChecker
* interned
*/
addType(getType(modulle, "char*")); /* FIXME: Make char* */
/**
* Add the instruction (TODO: add comment)
*/
StringLiteral strLitInstr = new StringLiteral();
addInstr(strLitInstr);
gprintln("Typecheck(): String literal processing... [done]");
}