Add "range"
This commit is contained in:
parent
9b605597b2
commit
07402a6b42
@ -230,6 +230,12 @@ char* compile_expression(tSyntaxElement* syntaxelement) {
|
|||||||
string_append_free(&result,compile_gensplit(token, ","));
|
string_append_free(&result,compile_gensplit(token, ","));
|
||||||
string_append(&result,"]");
|
string_append(&result,"]");
|
||||||
|
|
||||||
|
} else if (strcmp(token->content.string, "range") == 0) {
|
||||||
|
|
||||||
|
string_append(&result,"[");
|
||||||
|
string_append_free(&result,compile_gensplit(token, ".."));
|
||||||
|
string_append(&result,"]");
|
||||||
|
|
||||||
} else if (strcmp(token->content.string, "map") == 0) {
|
} else if (strcmp(token->content.string, "map") == 0) {
|
||||||
|
|
||||||
string_append(&result,"{");
|
string_append(&result,"{");
|
||||||
|
Loading…
Reference in New Issue
Block a user