From d855fc21ed7a065f8b0d6f2607fef09b4c6865e1 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 14 Oct 2023 02:59:34 +0200 Subject: [PATCH] space in func dexl --- main3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1