aboutsummaryrefslogtreecommitdiff
path: root/token.go
diff options
context:
space:
mode:
Diffstat (limited to 'token.go')
-rw-r--r--token.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/token.go b/token.go
index d4a5d33..20d4727 100644
--- a/token.go
+++ b/token.go
@@ -100,6 +100,10 @@ func (k tokenKind) String() string {
return "func"
case ret:
return "return"
+ case constKeyword:
+ return "const"
+ case mut:
+ return "mut"
}
return "invalid token"
@@ -153,6 +157,8 @@ const (
export
function
ret
+ constKeyword
+ mut
)
type token struct {