Fix if statements
This commit is contained in:
parent
9addce5f30
commit
d6af70056a
@ -427,7 +427,7 @@ char* compile(tSyntaxElement* syntaxtree) {
|
||||
|
||||
compile_exit_tag(&result);
|
||||
|
||||
string_append_free(&result,compile(token->next->next));
|
||||
string_append_free(&result,compile(token->next->next->content.syntax));
|
||||
|
||||
if (token->next->next->next != NULL) {
|
||||
|
||||
@ -435,7 +435,7 @@ char* compile(tSyntaxElement* syntaxtree) {
|
||||
string_append(&result, "else");
|
||||
compile_exit_tag(&result);
|
||||
|
||||
string_append_free(&result,compile(token->next->next->next));
|
||||
string_append_free(&result,compile(token->next->next->next->content.syntax));
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user