Renamed Node to ASTNode

This commit is contained in:
2022-09-18 19:14:37 +01:00
parent 2458996ee7
commit 6a086395be
13 changed files with 495 additions and 495 deletions

View File

@@ -74,10 +74,10 @@ unsigned char* compileString(char* source, size_t* size) {
initCompiler(&compiler);
//run the parser until the end of the source
Node* node = scanParser(&parser);
ASTNode* node = scanParser(&parser);
while(node != NULL) {
//pack up and leave
if (node->type == NODE_ERROR) {
if (node->type == AST_NODEERROR) {
printf(ERROR "error node detected\n" RESET);
freeNode(node);
freeCompiler(&compiler);
@@ -168,10 +168,10 @@ void repl() {
initCompiler(&compiler);
//run this iteration
Node* node = scanParser(&parser);
ASTNode* node = scanParser(&parser);
while(node != NULL) {
//pack up and restart
if (node->type == NODE_ERROR) {
if (node->type == AST_NODEERROR) {
printf(ERROR "error node detected\n" RESET);
error = true;
freeNode(node);