syntax/token_string.go
raw| 1 | // Code generated by "stringer -type token -linecomment -trimprefix _"; DO NOT EDIT. |
| 2 | |
| 3 | package syntax |
| 4 | |
| 5 | import "strconv" |
| 6 | |
| 7 | func _() { |
| 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[_realTokenBoundary-6] |
| 18 | _ = x[sglQuote-7] |
| 19 | _ = x[dblQuote-8] |
| 20 | _ = x[bckQuote-9] |
| 21 | _ = x[and-10] |
| 22 | _ = x[andAnd-11] |
| 23 | _ = x[orOr-12] |
| 24 | _ = x[or-13] |
| 25 | _ = x[orAnd-14] |
| 26 | _ = x[andPipe-15] |
| 27 | _ = x[andBang-16] |
| 28 | _ = x[dollar-17] |
| 29 | _ = x[dollSglQuote-18] |
| 30 | _ = x[dollDblQuote-19] |
| 31 | _ = x[dollBrace-20] |
| 32 | _ = x[dollBrack-21] |
| 33 | _ = x[dollParen-22] |
| 34 | _ = x[dollDblParen-23] |
| 35 | _ = x[leftBrace-24] |
| 36 | _ = x[leftBrack-25] |
| 37 | _ = x[dblLeftBrack-26] |
| 38 | _ = x[leftParen-27] |
| 39 | _ = x[dblLeftParen-28] |
| 40 | _ = x[rightBrace-29] |
| 41 | _ = x[rightBrack-30] |
| 42 | _ = x[dblRightBrack-31] |
| 43 | _ = x[rightParen-32] |
| 44 | _ = x[dblRightParen-33] |
| 45 | _ = x[semicolon-34] |
| 46 | _ = x[dblSemicolon-35] |
| 47 | _ = x[semiAnd-36] |
| 48 | _ = x[dblSemiAnd-37] |
| 49 | _ = x[semiOr-38] |
| 50 | _ = x[exclMark-39] |
| 51 | _ = x[tilde-40] |
| 52 | _ = x[addAdd-41] |
| 53 | _ = x[subSub-42] |
| 54 | _ = x[star-43] |
| 55 | _ = x[power-44] |
| 56 | _ = x[equal-45] |
| 57 | _ = x[nequal-46] |
| 58 | _ = x[lequal-47] |
| 59 | _ = x[gequal-48] |
| 60 | _ = x[addAssgn-49] |
| 61 | _ = x[subAssgn-50] |
| 62 | _ = x[mulAssgn-51] |
| 63 | _ = x[quoAssgn-52] |
| 64 | _ = x[remAssgn-53] |
| 65 | _ = x[andAssgn-54] |
| 66 | _ = x[orAssgn-55] |
| 67 | _ = x[xorAssgn-56] |
| 68 | _ = x[shlAssgn-57] |
| 69 | _ = x[shrAssgn-58] |
| 70 | _ = x[andBoolAssgn-59] |
| 71 | _ = x[orBoolAssgn-60] |
| 72 | _ = x[xorBoolAssgn-61] |
| 73 | _ = x[powAssgn-62] |
| 74 | _ = x[rdrOut-63] |
| 75 | _ = x[appOut-64] |
| 76 | _ = x[rdrIn-65] |
| 77 | _ = x[rdrInOut-66] |
| 78 | _ = x[dplIn-67] |
| 79 | _ = x[dplOut-68] |
| 80 | _ = x[rdrClob-69] |
| 81 | _ = x[appClob-70] |
| 82 | _ = x[hdoc-71] |
| 83 | _ = x[dashHdoc-72] |
| 84 | _ = x[wordHdoc-73] |
| 85 | _ = x[rdrAll-74] |
| 86 | _ = x[rdrAllClob-75] |
| 87 | _ = x[appAll-76] |
| 88 | _ = x[appAllClob-77] |
| 89 | _ = x[cmdIn-78] |
| 90 | _ = x[assgnParen-79] |
| 91 | _ = x[cmdOut-80] |
| 92 | _ = x[plus-81] |
| 93 | _ = x[colPlus-82] |
| 94 | _ = x[minus-83] |
| 95 | _ = x[colMinus-84] |
| 96 | _ = x[quest-85] |
| 97 | _ = x[colQuest-86] |
| 98 | _ = x[assgn-87] |
| 99 | _ = x[colAssgn-88] |
| 100 | _ = x[perc-89] |
| 101 | _ = x[dblPerc-90] |
| 102 | _ = x[hash-91] |
| 103 | _ = x[dblHash-92] |
| 104 | _ = x[colHash-93] |
| 105 | _ = x[colPipe-94] |
| 106 | _ = x[colStar-95] |
| 107 | _ = x[caret-96] |
| 108 | _ = x[dblCaret-97] |
| 109 | _ = x[comma-98] |
| 110 | _ = x[dblComma-99] |
| 111 | _ = x[at-100] |
| 112 | _ = x[slash-101] |
| 113 | _ = x[dblSlash-102] |
| 114 | _ = x[period-103] |
| 115 | _ = x[colon-104] |
| 116 | _ = x[tsExists-105] |
| 117 | _ = x[tsRegFile-106] |
| 118 | _ = x[tsDirect-107] |
| 119 | _ = x[tsCharSp-108] |
| 120 | _ = x[tsBlckSp-109] |
| 121 | _ = x[tsNmPipe-110] |
| 122 | _ = x[tsSocket-111] |
| 123 | _ = x[tsSmbLink-112] |
| 124 | _ = x[tsSticky-113] |
| 125 | _ = x[tsGIDSet-114] |
| 126 | _ = x[tsUIDSet-115] |
| 127 | _ = x[tsGrpOwn-116] |
| 128 | _ = x[tsUsrOwn-117] |
| 129 | _ = x[tsModif-118] |
| 130 | _ = x[tsRead-119] |
| 131 | _ = x[tsWrite-120] |
| 132 | _ = x[tsExec-121] |
| 133 | _ = x[tsNoEmpty-122] |
| 134 | _ = x[tsFdTerm-123] |
| 135 | _ = x[tsEmpStr-124] |
| 136 | _ = x[tsNempStr-125] |
| 137 | _ = x[tsOptSet-126] |
| 138 | _ = x[tsVarSet-127] |
| 139 | _ = x[tsRefVar-128] |
| 140 | _ = x[tsReMatch-129] |
| 141 | _ = x[tsNewer-130] |
| 142 | _ = x[tsOlder-131] |
| 143 | _ = x[tsDevIno-132] |
| 144 | _ = x[tsEql-133] |
| 145 | _ = x[tsNeq-134] |
| 146 | _ = x[tsLeq-135] |
| 147 | _ = x[tsGeq-136] |
| 148 | _ = x[tsLss-137] |
| 149 | _ = x[tsGtr-138] |
| 150 | _ = x[globQuest-139] |
| 151 | _ = x[globStar-140] |
| 152 | _ = x[globPlus-141] |
| 153 | _ = x[globAt-142] |
| 154 | _ = x[globExcl-143] |
| 155 | } |
| 156 | |
| 157 | const _token_name = "illegalTokEOFNewlLitLitWordLitRedirrealTokenBoundary'\"`&&&||||&&|&!$$'$\"${$[$($(({[[[(((}]]])));;;;&;;&;|!~++--***==!=<=>=+=-=*=/=%=&=|=^=<<=>>=&&=||=^^=**=>>><<><&>&>|>>|<<<<-<<<&>&>|&>>&>>|<(=(>(+:+-:-?:?=:=%%%###:#:|:*^^^,,,@///.:-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?(*(+(@(!(" |
| 158 | |
| 159 | var _token_index = [...]uint16{0, 10, 13, 17, 20, 27, 35, 52, 53, 54, 55, 56, 58, 60, 61, 63, 65, 67, 68, 70, 72, 74, 76, 78, 81, 82, 83, 85, 86, 88, 89, 90, 92, 93, 95, 96, 98, 100, 103, 105, 106, 107, 109, 111, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 141, 144, 147, 150, 153, 156, 157, 159, 160, 162, 164, 166, 168, 171, 173, 176, 179, 181, 184, 187, 191, 193, 195, 197, 198, 200, 201, 203, 204, 206, 207, 209, 210, 212, 213, 215, 217, 219, 221, 222, 224, 225, 227, 228, 229, 231, 232, 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 253, 255, 257, 259, 261, 263, 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 286, 289, 292, 295, 298, 301, 304, 307, 310, 312, 314, 316, 318, 320} |
| 160 | |
| 161 | func (i token) String() string { |
| 162 | idx := int(i) - 0 |
| 163 | if i < 0 || idx >= len(_token_index)-1 { |
| 164 | return "token(" + strconv.FormatInt(int64(i), 10) + ")" |
| 165 | } |
| 166 | return _token_name[_token_index[idx]:_token_index[idx+1]] |
| 167 | } |