token_string.go

  1// Code generated by "stringer -type token -linecomment -trimprefix _"; DO NOT EDIT.
  2
  3package syntax
  4
  5import "strconv"
  6
  7func _() {
  8	// An "invalid array index" compiler error signifies that the constant values have changed.
  9	// Re-run the stringer command to generate them again.
 10	var x [1]struct{}
 11	_ = x[illegalTok-0]
 12	_ = x[_EOF-1]
 13	_ = x[_Newl-2]
 14	_ = x[_Lit-3]
 15	_ = x[_LitWord-4]
 16	_ = x[_LitRedir-5]
 17	_ = x[sglQuote-6]
 18	_ = x[dblQuote-7]
 19	_ = x[bckQuote-8]
 20	_ = x[and-9]
 21	_ = x[andAnd-10]
 22	_ = x[orOr-11]
 23	_ = x[or-12]
 24	_ = x[orAnd-13]
 25	_ = x[dollar-14]
 26	_ = x[dollSglQuote-15]
 27	_ = x[dollDblQuote-16]
 28	_ = x[dollBrace-17]
 29	_ = x[dollBrack-18]
 30	_ = x[dollParen-19]
 31	_ = x[dollDblParen-20]
 32	_ = x[leftBrack-21]
 33	_ = x[dblLeftBrack-22]
 34	_ = x[leftParen-23]
 35	_ = x[dblLeftParen-24]
 36	_ = x[rightBrace-25]
 37	_ = x[rightBrack-26]
 38	_ = x[rightParen-27]
 39	_ = x[dblRightParen-28]
 40	_ = x[semicolon-29]
 41	_ = x[dblSemicolon-30]
 42	_ = x[semiAnd-31]
 43	_ = x[dblSemiAnd-32]
 44	_ = x[semiOr-33]
 45	_ = x[exclMark-34]
 46	_ = x[tilde-35]
 47	_ = x[addAdd-36]
 48	_ = x[subSub-37]
 49	_ = x[star-38]
 50	_ = x[power-39]
 51	_ = x[equal-40]
 52	_ = x[nequal-41]
 53	_ = x[lequal-42]
 54	_ = x[gequal-43]
 55	_ = x[addAssgn-44]
 56	_ = x[subAssgn-45]
 57	_ = x[mulAssgn-46]
 58	_ = x[quoAssgn-47]
 59	_ = x[remAssgn-48]
 60	_ = x[andAssgn-49]
 61	_ = x[orAssgn-50]
 62	_ = x[xorAssgn-51]
 63	_ = x[shlAssgn-52]
 64	_ = x[shrAssgn-53]
 65	_ = x[rdrOut-54]
 66	_ = x[appOut-55]
 67	_ = x[rdrIn-56]
 68	_ = x[rdrInOut-57]
 69	_ = x[dplIn-58]
 70	_ = x[dplOut-59]
 71	_ = x[clbOut-60]
 72	_ = x[hdoc-61]
 73	_ = x[dashHdoc-62]
 74	_ = x[wordHdoc-63]
 75	_ = x[rdrAll-64]
 76	_ = x[appAll-65]
 77	_ = x[cmdIn-66]
 78	_ = x[cmdOut-67]
 79	_ = x[plus-68]
 80	_ = x[colPlus-69]
 81	_ = x[minus-70]
 82	_ = x[colMinus-71]
 83	_ = x[quest-72]
 84	_ = x[colQuest-73]
 85	_ = x[assgn-74]
 86	_ = x[colAssgn-75]
 87	_ = x[perc-76]
 88	_ = x[dblPerc-77]
 89	_ = x[hash-78]
 90	_ = x[dblHash-79]
 91	_ = x[caret-80]
 92	_ = x[dblCaret-81]
 93	_ = x[comma-82]
 94	_ = x[dblComma-83]
 95	_ = x[at-84]
 96	_ = x[slash-85]
 97	_ = x[dblSlash-86]
 98	_ = x[colon-87]
 99	_ = x[tsExists-88]
100	_ = x[tsRegFile-89]
101	_ = x[tsDirect-90]
102	_ = x[tsCharSp-91]
103	_ = x[tsBlckSp-92]
104	_ = x[tsNmPipe-93]
105	_ = x[tsSocket-94]
106	_ = x[tsSmbLink-95]
107	_ = x[tsSticky-96]
108	_ = x[tsGIDSet-97]
109	_ = x[tsUIDSet-98]
110	_ = x[tsGrpOwn-99]
111	_ = x[tsUsrOwn-100]
112	_ = x[tsModif-101]
113	_ = x[tsRead-102]
114	_ = x[tsWrite-103]
115	_ = x[tsExec-104]
116	_ = x[tsNoEmpty-105]
117	_ = x[tsFdTerm-106]
118	_ = x[tsEmpStr-107]
119	_ = x[tsNempStr-108]
120	_ = x[tsOptSet-109]
121	_ = x[tsVarSet-110]
122	_ = x[tsRefVar-111]
123	_ = x[tsReMatch-112]
124	_ = x[tsNewer-113]
125	_ = x[tsOlder-114]
126	_ = x[tsDevIno-115]
127	_ = x[tsEql-116]
128	_ = x[tsNeq-117]
129	_ = x[tsLeq-118]
130	_ = x[tsGeq-119]
131	_ = x[tsLss-120]
132	_ = x[tsGtr-121]
133	_ = x[globQuest-122]
134	_ = x[globStar-123]
135	_ = x[globPlus-124]
136	_ = x[globAt-125]
137	_ = x[globExcl-126]
138}
139
140const _token_name = "illegalTokEOFNewlLitLitWordLitRedir'\"`&&&||||&$$'$\"${$[$($(([[[(((}])));;;;&;;&;|!~++--***==!=<=>=+=-=*=/=%=&=|=^=<<=>>=>>><<><&>&>|<<<<-<<<&>&>><(>(+:+-:-?:?=:=%%%###^^^,,,@///:-e-f-d-c-b-p-S-L-k-g-u-G-O-N-r-w-x-s-t-z-n-o-v-R=~-nt-ot-ef-eq-ne-le-ge-lt-gt?(*(+(@(!("
141
142var _token_index = [...]uint16{0, 10, 13, 17, 20, 27, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 49, 51, 53, 55, 57, 60, 61, 63, 64, 66, 67, 68, 69, 71, 72, 74, 76, 79, 81, 82, 83, 85, 87, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 117, 120, 121, 123, 124, 126, 128, 130, 132, 134, 137, 140, 142, 145, 147, 149, 150, 152, 153, 155, 156, 158, 159, 161, 162, 164, 165, 167, 168, 170, 171, 173, 174, 175, 177, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 231, 234, 237, 240, 243, 246, 249, 252, 255, 257, 259, 261, 263, 265}
143
144func (i token) String() string {
145	if i >= token(len(_token_index)-1) {
146		return "token(" + strconv.FormatInt(int64(i), 10) + ")"
147	}
148	return _token_name[_token_index[i]:_token_index[i+1]]
149}