Minor tweaks

This commit is contained in:
2022-08-08 03:42:48 +01:00
parent ceeca9d40f
commit 3fb952e3c2
4 changed files with 10 additions and 2 deletions

View File

@@ -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;