FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sh/syntax/token_string.go at bashsupport-pro · BashSupport-Pro/sh · GitHub
BashSupport-Pro
/
sh
Public
forked from
mvdan/sh
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sh
/
syntax
/
token_string.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
167 lines (161 loc) · 4.31 KB
Breadcrumbs
sh
/
syntax
/
token_string.go
Copy path
File metadata and controls
167 lines (161 loc) · 4.31 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
// Code generated by "stringer -type token -linecomment -trimprefix _"; 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
[
illegalTok
-
0
]
_
=
x
[
_EOF
-
1
]
_
=
x
[
_Newl
-
2
]
_
=
x
[
_Lit
-
3
]
_
=
x
[
_LitWord
-
4
]
_
=
x
[
_LitRedir
-
5
]
_
=
x
[
_realTokenBoundary
-
6
]
_
=
x
[
sglQuote
-
7
]
_
=
x
[
dblQuote
-
8
]
_
=
x
[
bckQuote
-
9
]
_
=
x
[
and
-
10
]
_
=
x
[
andAnd
-
11
]
_
=
x
[
orOr
-
12
]
_
=
x
[
or
-
13
]
_
=
x
[
orAnd
-
14
]
_
=
x
[
andPipe
-
15
]
_
=
x
[
andBang
-
16
]
_
=
x
[
dollar
-
17
]
_
=
x
[
dollSglQuote
-
18
]
_
=
x
[
dollDblQuote
-
19
]
_
=
x
[
dollBrace
-
20
]
_
=
x
[
dollBrack
-
21
]
_
=
x
[
dollParen
-
22
]
_
=
x
[
dollDblParen
-
23
]
_
=
x
[
leftBrace
-
24
]
_
=
x
[
leftBrack
-
25
]
_
=
x
[
dblLeftBrack
-
26
]
_
=
x
[
leftParen
-
27
]
_
=
x
[
dblLeftParen
-
28
]
_
=
x
[
rightBrace
-
29
]
_
=
x
[
rightBrack
-
30
]
_
=
x
[
dblRightBrack
-
31
]
_
=
x
[
rightParen
-
32
]
_
=
x
[
dblRightParen
-
33
]
_
=
x
[
semicolon
-
34
]
_
=
x
[
dblSemicolon
-
35
]
_
=
x
[
semiAnd
-
36
]
_
=
x
[
dblSemiAnd
-
37
]
_
=
x
[
semiOr
-
38
]
_
=
x
[
exclMark
-
39
]
_
=
x
[
tilde
-
40
]
_
=
x
[
addAdd
-
41
]
_
=
x
[
subSub
-
42
]
_
=
x
[
star
-
43
]
_
=
x
[
power
-
44
]
_
=
x
[
equal
-
45
]
_
=
x
[
nequal
-
46
]
_
=
x
[
lequal
-
47
]
_
=
x
[
gequal
-
48
]
_
=
x
[
addAssgn
-
49
]
_
=
x
[
subAssgn
-
50
]
_
=
x
[
mulAssgn
-
51
]
_
=
x
[
quoAssgn
-
52
]
_
=
x
[
remAssgn
-
53
]
_
=
x
[
andAssgn
-
54
]
_
=
x
[
orAssgn
-
55
]
_
=
x
[
xorAssgn
-
56
]
_
=
x
[
shlAssgn
-
57
]
_
=
x
[
shrAssgn
-
58
]
_
=
x
[
andBoolAssgn
-
59
]
_
=
x
[
orBoolAssgn
-
60
]
_
=
x
[
xorBoolAssgn
-
61
]
_
=
x
[
powAssgn
-
62
]
_
=
x
[
rdrOut
-
63
]
_
=
x
[
appOut
-
64
]
_
=
x
[
rdrIn
-
65
]
_
=
x
[
rdrInOut
-
66
]
_
=
x
[
dplIn
-
67
]
_
=
x
[
dplOut
-
68
]
_
=
x
[
rdrClob
-
69
]
_
=
x
[
appClob
-
70
]
_
=
x
[
hdoc
-
71
]
_
=
x
[
dashHdoc
-
72
]
_
=
x
[
wordHdoc
-
73
]
_
=
x
[
rdrAll
-
74
]
_
=
x
[
rdrAllClob
-
75
]
_
=
x
[
appAll
-
76
]
_
=
x
[
appAllClob
-
77
]
_
=
x
[
cmdIn
-
78
]
_
=
x
[
assgnParen
-
79
]
_
=
x
[
cmdOut
-
80
]
_
=
x
[
plus
-
81
]
_
=
x
[
colPlus
-
82
]
_
=
x
[
minus
-
83
]
_
=
x
[
colMinus
-
84
]
_
=
x
[
quest
-
85
]
_
=
x
[
colQuest
-
86
]
_
=
x
[
assgn
-
87
]
_
=
x
[
colAssgn
-
88
]
_
=
x
[
perc
-
89
]
_
=
x
[
dblPerc
-
90
]
_
=
x
[
hash
-
91
]
_
=
x
[
dblHash
-
92
]
_
=
x
[
colHash
-
93
]
_
=
x
[
colPipe
-
94
]
_
=
x
[
colStar
-
95
]
_
=
x
[
caret
-
96
]
_
=
x
[
dblCaret
-
97
]
_
=
x
[
comma
-
98
]
_
=
x
[
dblComma
-
99
]
_
=
x
[
at
-
100
]
_
=
x
[
slash
-
101
]
_
=
x
[
dblSlash
-
102
]
_
=
x
[
period
-
103
]
_
=
x
[
colon
-
104
]
_
=
x
[
tsExists
-
105
]
_
=
x
[
tsRegFile
-
106
]
_
=
x
[
tsDirect
-
107
]
_
=
x
[
tsCharSp
-
108
]
_
=
x
[
tsBlckSp
-
109
]
_
=
x
[
tsNmPipe
-
110
]
_
=
x
[
tsSocket
-
111
]
_
=
x
[
tsSmbLink
-
112
]
_
=
x
[
tsSticky
-
113
]
_
=
x
[
tsGIDSet
-
114
]
_
=
x
[
tsUIDSet
-
115
]
_
=
x
[
tsGrpOwn
-
116
]
_
=
x
[
tsUsrOwn
-
117
]
_
=
x
[
tsModif
-
118
]
_
=
x
[
tsRead
-
119
]
_
=
x
[
tsWrite
-
120
]
_
=
x
[
tsExec
-
121
]
_
=
x
[
tsNoEmpty
-
122
]
_
=
x
[
tsFdTerm
-
123
]
_
=
x
[
tsEmpStr
-
124
]
_
=
x
[
tsNempStr
-
125
]
_
=
x
[
tsOptSet
-
126
]
_
=
x
[
tsVarSet
-
127
]
_
=
x
[
tsRefVar
-
128
]
_
=
x
[
tsReMatch
-
129
]
_
=
x
[
tsNewer
-
130
]
_
=
x
[
tsOlder
-
131
]
_
=
x
[
tsDevIno
-
132
]
_
=
x
[
tsEql
-
133
]
_
=
x
[
tsNeq
-
134
]
_
=
x
[
tsLeq
-
135
]
_
=
x
[
tsGeq
-
136
]
_
=
x
[
tsLss
-
137
]
_
=
x
[
tsGtr
-
138
]
_
=
x
[
globQuest
-
139
]
_
=
x
[
globStar
-
140
]
_
=
x
[
globPlus
-
141
]
_
=
x
[
globAt
-
142
]
_
=
x
[
globExcl
-
143
]
}
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?(*(+(@(!("
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
}
func
(
i
token
)
String
()
string
{
idx
:=
int
(
i
)
-
0
if
i
<
0
||
idx
>=
len
(
_token_index
)
-
1
{
return
"token("
+
strconv
.
FormatInt
(
int64
(
i
),
10
)
+
")"
}
return
_token_name
[
_token_index
[
idx
]:
_token_index
[
idx
+
1
]]
}
Back
|
FazBrowse Home
|
New Git URL