Add "break" and "continue"

This commit is contained in:
bʰedoh₂ swé 2024-06-11 19:00:24 +05:00
parent 74bf888a84
commit 5edcf05d7a

View File

@ -420,6 +420,22 @@ char* compile(tSyntaxElement* syntaxtree) {
compile_exit_tag(&result); compile_exit_tag(&result);
} else if (strcmp(token->content.string, "break") == 0) {
compile_enter_tag(&result);
string_append(&result, "break");
compile_exit_tag(&result);
} else if (strcmp(token->content.string, "continue") == 0) {
compile_enter_tag(&result);
string_append(&result, "continue");
compile_exit_tag(&result);
} else if (strcmp(token->content.string, "formap") == 0) { } else if (strcmp(token->content.string, "formap") == 0) {
compile_enter_tag(&result); compile_enter_tag(&result);