aboutsummaryrefslogtreecommitdiff
path: root/token/token.go
diff options
context:
space:
mode:
Diffstat (limited to 'token/token.go')
-rw-r--r--token/token.go19
1 files changed, 9 insertions, 10 deletions
diff --git a/token/token.go b/token/token.go
index b0b4d5a..ab33563 100644
--- a/token/token.go
+++ b/token/token.go
@@ -9,9 +9,9 @@ const (
EOF
// Identifiers + literals
- IDENT // add, foobar, x, y, ...
- INT // 1343456
- STRING // "foobar"
+ IDENT // add, foobar, x, y, ...
+ INTEGER // 1343456
+ STRING // "foobar"
// Operators
ASSIGN // "="
@@ -29,13 +29,12 @@ const (
COMMA // ","
SEMICOLON // ";"
COLON // ":"
-
- LPAREN // "("
- RPAREN // ")"
- LBRACE // "{"
- RBRACE // "}"
- LBRACKET // "["
- RBRACKET // "]"
+ LPAREN // "("
+ RPAREN // ")"
+ LBRACE // "{"
+ RBRACE // "}"
+ LBRACKET // "["
+ RBRACKET // "]"
// Keywords
FUNCTION