Allow print to take multiple arguments
This commit is contained in:
parent
3aa280ba38
commit
e6027bbaf2
@ -317,10 +317,14 @@ char* compile(tSyntaxElement* syntaxtree) {
|
|||||||
|
|
||||||
} else if (strcmp(token->content.string, "print") == 0) {
|
} else if (strcmp(token->content.string, "print") == 0) {
|
||||||
|
|
||||||
|
for(tSyntaxElement* i = token->next; i != NULL; i = i->next) {
|
||||||
|
|
||||||
string_append(&result, "{{");
|
string_append(&result, "{{");
|
||||||
string_append(&result,compile_expression(token->next));
|
string_append(&result,compile_expression(i));
|
||||||
string_append(&result, "}}");
|
string_append(&result, "}}");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
string_append(&result, "{#");
|
string_append(&result, "{#");
|
||||||
|
Loading…
Reference in New Issue
Block a user