Got scope-based variable shadowing working

This commit is contained in:
2022-08-14 21:32:13 +01:00
parent 4aa6f75ea7
commit 9e899f5974
5 changed files with 50 additions and 9 deletions

View File

@@ -195,7 +195,7 @@ void printNode(Node* node) {
printNode(&(node->block.nodes[i]));
}
printf("}\n");
printf("\n}\n");
break;
case NODE_COMPOUND:
@@ -229,5 +229,8 @@ void printNode(Node* node) {
printNode(node->varDecl.expression);
printf(")");
break;
default:
printf("[internal] unkown node type in printNode: %d\n", node->type);
}
}