From b762ad154eface94a97b755fd6d0828f200a6fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Tue, 11 Jun 2024 17:34:00 +0500 Subject: [PATCH] Formatting --- src/compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compile.c b/src/compile.c index fced240..7bcea2f 100644 --- a/src/compile.c +++ b/src/compile.c @@ -208,6 +208,7 @@ char* compile_expression(tSyntaxElement* syntaxelement) { } else if (strcmp(token->content.string, "map") == 0) { string_append(&result,"{"); + for (tSyntaxElement* i = token->next; i != NULL; i = i->next) { string_append(&result, compile_expression(i->content.syntax)); @@ -218,6 +219,7 @@ char* compile_expression(tSyntaxElement* syntaxelement) { string_append(&result,","); } + string_append(&result,"}"); } else {