Change formating a bit

This commit is contained in:
bʰedoh₂ swé 2024-06-11 16:02:51 +05:00
parent d5ccf1c0be
commit 57af99e53a

View File

@ -238,9 +238,7 @@ char* compile(tSyntaxElement* syntaxtree) {
tSyntaxElement* token = syntaxtree->content.syntax; tSyntaxElement* token = syntaxtree->content.syntax;
if (strcmp(token->content.string, "def") == 0) { if (strcmp(token->content.string, "def") == 0) {
} else } else if (strcmp(token->content.string, "set") == 0) {
if (strcmp(token->content.string, "set") == 0) {
compile_enter_tag(&result); compile_enter_tag(&result);
@ -251,9 +249,7 @@ char* compile(tSyntaxElement* syntaxtree) {
compile_exit_tag(&result); compile_exit_tag(&result);
} else } else if (strcmp(token->content.string, "global") == 0) {
if (strcmp(token->content.string, "global") == 0) {
compile_enter_tag(&result); compile_enter_tag(&result);
@ -264,9 +260,7 @@ char* compile(tSyntaxElement* syntaxtree) {
compile_exit_tag(&result); compile_exit_tag(&result);
} else } else if (strcmp(token->content.string, "do") == 0) {
if (strcmp(token->content.string, "do") == 0) {
compile_enter_tag(&result); compile_enter_tag(&result);
@ -275,9 +269,7 @@ char* compile(tSyntaxElement* syntaxtree) {
compile_exit_tag(&result); compile_exit_tag(&result);
} else } else if (strcmp(token->content.string, "if") == 0) {
if (strcmp(token->content.string, "if") == 0) {
compile_enter_tag(&result); compile_enter_tag(&result);
@ -304,9 +296,7 @@ char* compile(tSyntaxElement* syntaxtree) {
compile_exit_tag(&result); compile_exit_tag(&result);
} else } else if (strcmp(token->content.string, "print") == 0) {
if (strcmp(token->content.string, "print") == 0) {
string_append(&result, "{{"); string_append(&result, "{{");
string_append(&result,compile_expression(token->next)); string_append(&result,compile_expression(token->next));