aboutsummaryrefslogtreecommitdiff
path: root/token_string.go
diff options
context:
space:
mode:
Diffstat (limited to 'token_string.go')
-rw-r--r--token_string.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/token_string.go b/token_string.go
new file mode 100644
index 0000000..a9dc2c5
--- /dev/null
+++ b/token_string.go
@@ -0,0 +1,29 @@
+// Code generated by "stringer -type=Token"; DO NOT EDIT.
+
+package main
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[INVALID-0]
+ _ = x[EOF-1]
+ _ = x[NUM-2]
+ _ = x[ADD-3]
+ _ = x[SUB-4]
+ _ = x[MUL-5]
+ _ = x[DIV-6]
+}
+
+const _Token_name = "INVALIDEOFNUMADDSUBMULDIV"
+
+var _Token_index = [...]uint8{0, 7, 10, 13, 16, 19, 22, 25}
+
+func (i Token) String() string {
+ if i < 0 || i >= Token(len(_Token_index)-1) {
+ return "Token(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _Token_name[_Token_index[i]:_Token_index[i+1]]
+}