mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-19 16:54:08 +10:00
Minor tweaks
This commit is contained in:
@@ -74,6 +74,10 @@ void emitNodeGrouping(Node** nodeHandle) {
|
||||
}
|
||||
|
||||
void printNode(Node* node) {
|
||||
if (node == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch(node->type) {
|
||||
case NODE_ERROR:
|
||||
printf("error");
|
||||
@@ -92,7 +96,7 @@ void printNode(Node* node) {
|
||||
case NODE_BINARY:
|
||||
printf("binary-left:");
|
||||
printNode(node->binary.left);
|
||||
printf("binary-right:");
|
||||
printf(";binary-right:");
|
||||
printNode(node->binary.right);
|
||||
printf(";");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user