aboutsummaryrefslogtreecommitdiff
path: root/token/token.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-03-25 10:20:37 +0200
committerDimitri Sokolyuk <demon@dim13.org>2018-03-25 10:20:37 +0200
commitf73ea0821fb378ba260630ba3c7ae02f7d9f8377 (patch)
treef050f34400014928a1db0ea16a33af290927154c /token/token.go
parent99d08ce35ede2b5c75266240f20c4554060ddce0 (diff)
cleanup
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