From 041fcfd0b17e7a6f654fc155108847aac8293144 Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Mon, 26 May 2025 09:33:05 +0200 Subject: [feature] only allow procedure declarations on top level --- src/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/driver.c') 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(", "); } -- cgit v1.2.3