Updated and revised some tests

This commit is contained in:
2026-05-19 11:24:49 +10:00
parent 414a9d6194
commit a0d75b3c70
20 changed files with 49 additions and 54 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ void Toy_private_appendAstBlock(Toy_Bucket** bucketHandle, Toy_Ast* block, Toy_A
//first, check if we're an empty head
if (block->block.child == NULL) {
block->block.child = child;
return; //NOTE: first call on an empty head skips any memory allocations
return; //First call on an empty head skips any memory allocations
}
//run (or jump) until we hit the current tail
+1 -2
View File
@@ -1287,8 +1287,7 @@ static unsigned int writeBytecodeFromAst(Toy_Bytecode** mb, Toy_Ast* ast) {
break;
case TOY_AST_END:
fprintf(stderr, TOY_CC_ERROR "COMPILER ERROR: Invalid AST type found: Unknown 'end'\n" TOY_CC_RESET);
(*mb)->panic = true;
//NO-OP
break;
}