treesummaryrefslogcommitdiff
path: root/main3.c
diff options
context:
space:
mode:
authorPatrick2023-10-14 02:59:34 +0200
committerPatrick2023-10-14 02:59:34 +0200
commitd855fc21ed7a065f8b0d6f2607fef09b4c6865e1 (patch)
treedcc26ae6e598b2426dc8c3242704be6a9e242e63 /main3.c
parent343de1d73b29b83db7ea5ecf9b6d18fe50733f22 (diff)
downloadiftint-d855fc21ed7a065f8b0d6f2607fef09b4c6865e1.tar.gz
iftint-d855fc21ed7a065f8b0d6f2607fef09b4c6865e1.zip
space in func dexl
Diffstat (limited to 'main3.c')
-rw-r--r--main3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main3.c b/main3.c
index 7929e67..c3da7f6 100644
--- a/main3.c
+++ b/main3.c
@@ -237,7 +237,7 @@ void NodeDraw(Node *n) {
switch (n->kind) {
case NK_Namespace: { PRINTF("namespace"); printf(" %s {", n->data); indent++; for (int i = 0; i < n->childCount; i++) { INDENT NodeDraw(NodeGetChild(n, i)); } indent--; INDENT printf("}"); break; }
case NK_Struct: { PRINTF("struct"); printf(" %s {", n->data); indent++; for (int i = 0; i < n->childCount; i++) { INDENT NodeDraw(NodeGetChild(n, i)); } indent--; INDENT printf("}"); break; }
- case NK_Func: { PRINTF("fn"); printf(" %s ", n->data); NodeDraw(NodeGetChild(n, 0)); NodeDraw(NodeGetChild(n, 1)); break; }
+ case NK_Func: { PRINTF("fn"); printf(" %s ", n->data); NodeDraw(NodeGetChild(n, 0)); printf(" "); NodeDraw(NodeGetChild(n, 1)); break; }
case NK_VarList:
case NK_ExprList: { PRINTF("("); for (int i = 0; i < n->childCount; i++) { if (i != 0) printf(", "); NodeDraw(NodeGetChild(n, i)); } PRINTF(")"); break; }
case NK_Var: { PRINTF("[%s]", n->data); break; }