diff --git a/src/compile.c b/src/compile.c index 6abb7f9..19f7f15 100644 --- a/src/compile.c +++ b/src/compile.c @@ -317,9 +317,13 @@ char* compile(tSyntaxElement* syntaxtree) { } else if (strcmp(token->content.string, "print") == 0) { - string_append(&result, "{{"); - string_append(&result,compile_expression(token->next)); - string_append(&result, "}}"); + for(tSyntaxElement* i = token->next; i != NULL; i = i->next) { + + string_append(&result, "{{"); + string_append(&result,compile_expression(i)); + string_append(&result, "}}"); + + } } else {