diff --git a/src/compile.c b/src/compile.c index fa827a9..fe55cf5 100644 --- a/src/compile.c +++ b/src/compile.c @@ -256,6 +256,16 @@ char* compile(tSyntaxElement* syntaxtree) { string_append(&result,compile(token->next->next)); + if (token->next->next->next != NULL) { + + compile_enter_tag(&result); + string_append(&result, "else"); + compile_exit_tag(&result); + + string_append(&result,compile(token->next->next->next)); + + } + compile_enter_tag(&result); string_append(&result, "endif");