Compare commits
2 Commits
57af99e53a
...
5cc866637e
Author | SHA1 | Date | |
---|---|---|---|
5cc866637e | |||
ab7f648e56 |
@ -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, "#}");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -31,6 +31,8 @@ int main(int argc, char *argv[]) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
process(code, NULL);
|
||||
|
||||
printf("%s\n", compile(code));
|
||||
|
||||
se_free(code);
|
||||
|
Loading…
Reference in New Issue
Block a user