mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Expression statements and assignemnts are working
This commit is contained in:
@@ -78,6 +78,7 @@ unsigned char* compileString(char* source, size_t* size) {
|
||||
while(node != NULL) {
|
||||
//pack up and leave
|
||||
if (node->type == NODE_ERROR) {
|
||||
printf(ERROR "error node detected\n" RESET);
|
||||
freeNode(node);
|
||||
freeCompiler(&compiler);
|
||||
freeParser(&parser);
|
||||
@@ -163,6 +164,7 @@ void repl() {
|
||||
while(node != NULL) {
|
||||
//pack up and restart
|
||||
if (node->type == NODE_ERROR) {
|
||||
printf(ERROR "error node detected\n" RESET);
|
||||
error = true;
|
||||
freeNode(node);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user