mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Got scope-based variable shadowing working
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user