Tweaked string quotes

This commit is contained in:
2022-08-11 13:45:13 +01:00
parent 32ac46d9a0
commit 5c93bf663a
4 changed files with 21 additions and 10 deletions

View File

@@ -14,14 +14,14 @@ void initCompiler(Compiler* compiler) {
compiler->capacity = 0;
compiler->count = 0;
//default atomic literals
Literal n = TO_NULL_LITERAL;
Literal t = TO_BOOLEAN_LITERAL(true);
Literal f = TO_BOOLEAN_LITERAL(false);
//default atomic literals (commented out, because not needed atm - might need them later)
// Literal n = TO_NULL_LITERAL;
// Literal t = TO_BOOLEAN_LITERAL(true);
// Literal f = TO_BOOLEAN_LITERAL(false);
pushLiteralArray(&compiler->literalCache, n);
pushLiteralArray(&compiler->literalCache, t);
pushLiteralArray(&compiler->literalCache, f);
// pushLiteralArray(&compiler->literalCache, n);
// pushLiteralArray(&compiler->literalCache, t);
// pushLiteralArray(&compiler->literalCache, f);
}
//separated out, so it can be recursive