aboutsummaryrefslogtreecommitdiff
path: root/token
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
parent99d08ce35ede2b5c75266240f20c4554060ddce0 (diff)
cleanup
Diffstat (limited to 'token')
-rw-r--r--token/token.go19
-rw-r--r--token/tokentype_string.go4
2 files changed, 11 insertions, 12 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
diff --git a/token/tokentype_string.go b/token/tokentype_string.go
index f433400..e7e554e 100644
--- a/token/tokentype_string.go
+++ b/token/tokentype_string.go
@@ -4,9 +4,9 @@ package token
import "strconv"
-const _TokenType_name = "ILLEGALEOFIDENTINTSTRINGASSIGNPLUSMINUSBANGASTERISKSLASHLESSMOREEQNOT_EQCOMMASEMICOLONCOLONLPARENRPARENLBRACERBRACELBRACKETRBRACKETFUNCTIONLETTRUEFALSEIFELSERETURNMACRO"
+const _TokenType_name = "ILLEGALEOFIDENTINTEGERSTRINGASSIGNPLUSMINUSBANGASTERISKSLASHLESSMOREEQNOT_EQCOMMASEMICOLONCOLONLPARENRPARENLBRACERBRACELBRACKETRBRACKETFUNCTIONLETTRUEFALSEIFELSERETURNMACRO"
-var _TokenType_index = [...]uint8{0, 7, 10, 15, 18, 24, 30, 34, 39, 43, 51, 56, 60, 64, 66, 72, 77, 86, 91, 97, 103, 109, 115, 123, 131, 139, 142, 146, 151, 153, 157, 163, 168}
+var _TokenType_index = [...]uint8{0, 7, 10, 15, 22, 28, 34, 38, 43, 47, 55, 60, 64, 68, 70, 76, 81, 90, 95, 101, 107, 113, 119, 127, 135, 143, 146, 150, 155, 157, 161, 167, 172}
func (i TokenType) String() string {
if i < 0 || i >= TokenType(len(_TokenType_index)-1) {