summaryrefslogtreecommitdiff
path: root/lang/token.go
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2024-03-14 23:22:23 +0100
committerMarc Vertes <mvertes@free.fr>2024-03-14 23:22:23 +0100
commit5da3a651ba08859ccc1cdf1094603411696c8df2 (patch)
tree3970025b82edf10705674806dc35a4d0296d1729 /lang/token.go
parentef1499e057051e5845069d04cc12f20f42d8258f (diff)
feat: improve debug output of tokens
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 5205efc..613f2c6 100644
--- a/lang/token.go
+++ b/lang/token.go
@@ -1,9 +1,11 @@
package lang
+//go:generate stringer -type=TokenId
+
type TokenId int
const (
- Illegal = iota
+ Illegal TokenId = iota
Comment
Ident