// Code generated by "stringer -type token -linecomment tokens.go"; DO NOT EDIT. package syntax 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[EOF-1] _ = x[NameType-2] _ = x[Literal-3] _ = x[OperatorType-4] _ = x[AssignOp-5] _ = x[IncOp-6] _ = x[Assign-7] _ = x[Define-8] _ = x[Arrow-9] _ = x[Star-10] _ = x[Lparen-11] _ = x[Lbrack-12] _ = x[Lbrace-13] _ = x[Rparen-14] _ = x[Rbrack-15] _ = x[Rbrace-16] _ = x[Comma-17] _ = x[Semi-18] _ = x[Colon-19] _ = x[Dot-20] _ = x[DotDotDot-21] _ = x[Break-22] _ = x[Case-23] _ = x[Chan-24] _ = x[Const-25] _ = x[Continue-26] _ = x[Default-27] _ = x[Defer-28] _ = x[Else-29] _ = x[Fallthrough-30] _ = x[For-31] _ = x[Func-32] _ = x[Go-33] _ = x[Goto-34] _ = x[If-35] _ = x[Import-36] _ = x[Interface-37] _ = x[Map-38] _ = x[Package-39] _ = x[Range-40] _ = x[Return-41] _ = x[Select-42] _ = x[Struct-43] _ = x[Switch-44] _ = x[TypeType-45] _ = x[Var-46] _ = x[tokenCount-47] } 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]] }