aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/interpreter.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/interpreter.c b/src/interpreter.c
index 8176bad..ecf26bd 100644
--- a/src/interpreter.c
+++ b/src/interpreter.c
@@ -105,9 +105,10 @@ void ast_print(ASTNode *node, int depth) {
break;
}
case NT_ASSIGN: {
- printf("%*sASSIGN %s=%d\n", indent, "",
- node->u.d_assign.var->u.d_var.name,
- node->u.d_assign.aexp->u.d_int.val);
+ printf("%*sASSIGN %s=", indent, "",
+ node->u.d_assign.var->u.d_var.name);
+ ast_print(node->u.d_assign.aexp, 0);
+ printf("\n");
break;
}
case NT_SEQ: {