This commit is contained in:
bʰedoh₂ swé 2024-06-12 21:35:24 +05:00
parent d6af70056a
commit 635747af1d

View File

@ -149,8 +149,13 @@ char* compile_gensplit(tSyntaxElement* se, char* operator) {
else else
string_append(&result,compile_expression_wrapped(token->next)); 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,operator);
string_append(&result," ");
}
token = token->next; token = token->next;
@ -621,7 +626,7 @@ char* compile(tSyntaxElement* syntaxtree) {
} }
} }
if (syntaxtree->next != NULL) if (syntaxtree->next != NULL)
syntaxtree = syntaxtree->next; syntaxtree = syntaxtree->next;
else break; else break;