diff options
| author | Marc Vertes <mvertes@free.fr> | 2026-01-21 19:26:42 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2026-01-21 19:26:42 +0100 |
| commit | c922c797204069f42a7abf88500c5708f68a8e43 (patch) | |
| tree | a0379dc6f6992f0ba077b028dfd4b031dd674d98 /lang/token.go | |
| parent | ee9397bc031dc33e4f735b3331643bbf60a0d17a (diff) | |
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.
Diffstat (limited to 'lang/token.go')
| -rw-r--r-- | lang/token.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
