Add print keyword

This commit is contained in:
bʰedoh₂ swé 2024-06-11 02:51:37 +05:00
parent 542547e174
commit eda259dfbf

View File

@ -155,6 +155,14 @@ char* compile(tSyntaxElement* syntaxtree) {
compile_exit_tag(&result); compile_exit_tag(&result);
} else
if (strcmp(token->content.string, "print") == 0) {
string_append(&result, "{{");
string_append(&result,compile_expression(token->next));
string_append(&result, "}}");
} }
} }