aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-25 16:02:27 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-25 16:02:27 +0200
commitb8f4d07dc762448e50c1d7a2def0b0158b2ebdad (patch)
tree338d764efc09e3faa50673f83c01dfa9f31f3878
parent7ce8a269175d8c5a488318c8db121cf14edbbdb7 (diff)
downloadimp-b8f4d07dc762448e50c1d7a2def0b0158b2ebdad.tar.gz
imp-b8f4d07dc762448e50c1d7a2def0b0158b2ebdad.zip
[feature] add spaces for ASSIGN when printing AST
-rw-r--r--src/driver.c2
1 files changed, 1 insertions, 1 deletions
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");