well, nothing works, at least there is something to debug
This commit is contained in:
@@ -107,7 +107,9 @@ void print_AST(AST tree) {
|
||||
}
|
||||
|
||||
void print_node(ASTNode *node, int depth) {
|
||||
if (!node) return;
|
||||
if (node == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (node->type == NODE_BINARY_OP) {
|
||||
print_node(node->data.binary.right, depth + 1);
|
||||
|
||||
Reference in New Issue
Block a user