From b8f4d07dc762448e50c1d7a2def0b0158b2ebdad Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Sun, 25 May 2025 16:02:27 +0200 Subject: [feature] add spaces for ASSIGN when printing AST --- src/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver.c b/src/driver.c index a522938..3727f11 100644 --- a/src/driver.c +++ b/src/driver.c @@ -59,7 +59,7 @@ static void ast_print (IMP_ASTNode *node, int depth) { break; } case IMP_AST_NT_ASSIGN: { - printf("%*sASSIGN %s=", indent, "", + printf("%*sASSIGN %s = ", indent, "", node->data.assign.var->data.variable.name); ast_print(node->data.assign.aexpr, 0); printf("\n"); -- cgit v1.2.3