diff options
author | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2025-05-26 09:33:05 +0200 |
---|---|---|
committer | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2025-05-26 09:33:05 +0200 |
commit | 041fcfd0b17e7a6f654fc155108847aac8293144 (patch) | |
tree | 2e2330f73c2911f7f7c03cd38c8370a68a6dc1d0 /src/driver.c | |
parent | 49e4ca2fa0c6de8f50d3f739ce46e8d4c7b75da8 (diff) | |
download | imp-041fcfd0b17e7a6f654fc155108847aac8293144.tar.gz imp-041fcfd0b17e7a6f654fc155108847aac8293144.zip |
[feature] only allow procedure declarations on top level
Diffstat (limited to 'src/driver.c')
-rw-r--r-- | src/driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver.c b/src/driver.c index 3727f11..c43b899 100644 --- a/src/driver.c +++ b/src/driver.c @@ -170,7 +170,7 @@ static void ast_print (IMP_ASTNode *node, int depth) { printf("%*sCALL %s(", indent, "", node->data.proc_call.name); IMP_ASTNodeList *args = node->data.proc_call.val_args; while (args) { - printf("%s", args->node->data.variable.name); + ast_print(args->node, 0); args = args->next; if (args) printf(", "); } |