mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
I GIVE UP
This commit is contained in:
@@ -96,9 +96,18 @@ int main() {
|
||||
initCompiler(&compiler);
|
||||
|
||||
Node* node = scanParser(&parser);
|
||||
while (node != NULL) {
|
||||
if (node->type == NODE_ERROR) {
|
||||
fprintf(stderr, ERROR "ERROR: Error node found" RESET);
|
||||
return -1;
|
||||
}
|
||||
|
||||
//write
|
||||
writeCompiler(&compiler, node);
|
||||
//write
|
||||
writeCompiler(&compiler, node);
|
||||
freeNode(node);
|
||||
|
||||
node = scanParser(&parser);
|
||||
}
|
||||
|
||||
//collate
|
||||
int size = 0;
|
||||
@@ -107,7 +116,6 @@ int main() {
|
||||
//cleanup
|
||||
FREE_ARRAY(char, source, sourceLength);
|
||||
FREE_ARRAY(unsigned char, bytecode, size);
|
||||
freeNode(node);
|
||||
freeParser(&parser);
|
||||
freeCompiler(&compiler);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user