summaryrefslogtreecommitdiff
path: root/lang/token.go
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2026-01-16 12:30:31 +0100
committerMarc Vertes <mvertes@free.fr>2026-01-16 12:30:31 +0100
commitee9397bc031dc33e4f735b3331643bbf60a0d17a (patch)
tree42087d58e916904af3e70de6171e0f1c9c894d8f /lang/token.go
parent31e3793202402fda21905027c18ebfa5c8d8c832 (diff)
feat: handle slice expressions
Diffstat (limited to 'lang/token.go')
-rw-r--r--lang/token.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/token.go b/lang/token.go
index 46a5bb4..9800599 100644
--- a/lang/token.go
+++ b/lang/token.go
@@ -59,7 +59,7 @@ const (
AndNotAssign // &^=
Inc // ++
Dec // --
- MapAssign
+ IndexAssign // a[i] =
// Unary operations.
Plus // unary +
@@ -120,7 +120,9 @@ const (
JumpSetFalse
JumpSetTrue
Label
+ Len
New
+ Slice
// This must be the last token value.
MaxTok