1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Code generated by "stringer -type token -linecomment"; DO NOT EDIT.
package syntax
import "strconv"
const _token_name = "EOFnameliteralopop=opop=:=<-*([{)]},;:....breakcasechanconstcontinuedefaultdeferelsefallthroughforfuncgogotoifimportinterfacemappackagerangereturnselectstructswitchtypevar"
var _token_index = [...]uint8{0, 3, 7, 14, 16, 19, 23, 24, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 42, 47, 51, 55, 60, 68, 75, 80, 84, 95, 98, 102, 104, 108, 110, 116, 125, 128, 135, 140, 146, 152, 158, 164, 168, 171, 171}
func (i token) String() string {
i -= 1
if i >= token(len(_token_index)-1) {
return "token(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _token_name[_token_index[i]:_token_index[i+1]]
}
|