Browse Source

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

Bug fixed whenever a "" is encountered
constants
Tristan B. V. Kildaire 7 months ago
parent
commit
6cfca2cea2
  1. 6
      source/tlang/compiler/typecheck/core.d

6
source/tlang/compiler/typecheck/core.d

@ -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]");
}

Loading…
Cancel
Save