From c922c797204069f42a7abf88500c5708f68a8e43 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Wed, 21 Jan 2026 19:26:42 +0100 Subject: feat: add support for range clause and iterators - vm: added Pull, Next and Stop instructions, to implement iterators - lang: add Range, Next and Stop tokens - parser: handle range clause. Still naive and incomplete. - comp: generate iterator instructions from range clause. Work in progress. Only initial support for slices. Many more tests and combinations needed, but the main pattern is there now. --- lang/token.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lang/token.go') diff --git a/lang/token.go b/lang/token.go index 9800599..00f7366 100644 --- a/lang/token.go +++ b/lang/token.go @@ -122,7 +122,9 @@ const ( Label Len New + Next Slice + Stop // This must be the last token value. MaxTok -- cgit v1.2.3