blob: a9dc2c5d5d61deae146fb0aea31ed95d0fee7eff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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]]
}
|