Add "range"

This commit is contained in:
bʰedoh₂ swé 2024-06-11 21:26:39 +05:00
parent 9b605597b2
commit 07402a6b42

View File

@ -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,"{");