From 635747af1d12b66f10602755abc492815c6f868d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Wed, 12 Jun 2024 21:35:24 +0500 Subject: [PATCH] Spaces --- src/compile.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/compile.c b/src/compile.c index a07b015..86b957e 100644 --- a/src/compile.c +++ b/src/compile.c @@ -149,8 +149,13 @@ char* compile_gensplit(tSyntaxElement* se, char* operator) { else string_append(&result,compile_expression_wrapped(token->next)); - if (token->next->next != NULL) + if (token->next->next != NULL) { + + string_append(&result," "); string_append(&result,operator); + string_append(&result," "); + + } token = token->next; @@ -621,7 +626,7 @@ char* compile(tSyntaxElement* syntaxtree) { } } - + if (syntaxtree->next != NULL) syntaxtree = syntaxtree->next; else break;