Compare commits

...

2 Commits

Author SHA1 Message Date
5cc866637e Add back preprocessing 2024-06-11 16:07:09 +05:00
ab7f648e56 Notify of unknown keywords 2024-06-11 16:06:47 +05:00
2 changed files with 9 additions and 0 deletions

View File

@ -302,6 +302,13 @@ char* compile(tSyntaxElement* syntaxtree) {
string_append(&result,compile_expression(token->next));
string_append(&result, "}}");
} else {
string_append(&result, "{#");
string_append(&result, "Unknown keyword: ");
string_append(&result, token->content.string);
string_append(&result, "#}");
}
}

View File

@ -31,6 +31,8 @@ int main(int argc, char *argv[]) {
return 1;
}
process(code, NULL);
printf("%s\n", compile(code));
se_free(code);