From 07402a6b42754fdabbbee85768a7f27320cffd3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Tue, 11 Jun 2024 21:26:39 +0500 Subject: [PATCH] Add "range" --- src/compile.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/compile.c b/src/compile.c index 63c6290..5e6edfc 100644 --- a/src/compile.c +++ b/src/compile.c @@ -230,6 +230,12 @@ char* compile_expression(tSyntaxElement* syntaxelement) { string_append_free(&result,compile_gensplit(token, ",")); 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) { string_append(&result,"{");