diff options
| author | Marc Vertes <mvertes@free.fr> | 2024-03-14 23:22:23 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2024-03-14 23:22:23 +0100 |
| commit | 5da3a651ba08859ccc1cdf1094603411696c8df2 (patch) | |
| tree | 3970025b82edf10705674806dc35a4d0296d1729 /lang/token.go | |
| parent | ef1499e057051e5845069d04cc12f20f42d8258f (diff) | |
feat: improve debug output of tokens
Diffstat (limited to 'lang/token.go')
| -rw-r--r-- | lang/token.go | 4 |
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 |
