OILS / _devbuild / gen / id_kind_asdl.py View on Github | oilshell.org

906 lines, 895 significant
1from asdl import pybase
2
3Id_t = int # type alias for integer
4
5class Id(object):
6 Word_Compound = 1
7 Arith_Semi = 2
8 Arith_Comma = 3
9 Arith_Plus = 4
10 Arith_Minus = 5
11 Arith_Star = 6
12 Arith_Slash = 7
13 Arith_Percent = 8
14 Arith_DPlus = 9
15 Arith_DMinus = 10
16 Arith_DStar = 11
17 Arith_LParen = 12
18 Arith_RParen = 13
19 Arith_LBracket = 14
20 Arith_RBracket = 15
21 Arith_RBrace = 16
22 Arith_QMark = 17
23 Arith_Colon = 18
24 Arith_LessEqual = 19
25 Arith_Less = 20
26 Arith_GreatEqual = 21
27 Arith_Great = 22
28 Arith_DEqual = 23
29 Arith_NEqual = 24
30 Arith_DAmp = 25
31 Arith_DPipe = 26
32 Arith_Bang = 27
33 Arith_DGreat = 28
34 Arith_DLess = 29
35 Arith_Amp = 30
36 Arith_Pipe = 31
37 Arith_Caret = 32
38 Arith_Tilde = 33
39 Arith_Equal = 34
40 Arith_PlusEqual = 35
41 Arith_MinusEqual = 36
42 Arith_StarEqual = 37
43 Arith_SlashEqual = 38
44 Arith_PercentEqual = 39
45 Arith_DGreatEqual = 40
46 Arith_DLessEqual = 41
47 Arith_AmpEqual = 42
48 Arith_CaretEqual = 43
49 Arith_PipeEqual = 44
50 Eof_Real = 45
51 Eof_RParen = 46
52 Eof_Backtick = 47
53 Undefined_Tok = 48
54 Unknown_Tok = 49
55 Unknown_Backslash = 50
56 Unknown_DEqual = 51
57 Eol_Tok = 52
58 Ignored_LineCont = 53
59 Ignored_Space = 54
60 Ignored_Comment = 55
61 Ignored_Newline = 56
62 WS_Space = 57
63 Lit_Chars = 58
64 Lit_CharsWithoutPrefix = 59
65 Lit_VarLike = 60
66 Lit_ArrayLhsOpen = 61
67 Lit_ArrayLhsClose = 62
68 Lit_Splice = 63
69 Lit_AtLBracket = 64
70 Lit_AtLBraceDot = 65
71 Lit_Other = 66
72 Lit_EscapedChar = 67
73 Lit_LBracket = 68
74 Lit_RBracket = 69
75 Lit_Star = 70
76 Lit_QMark = 71
77 Lit_LBrace = 72
78 Lit_RBrace = 73
79 Lit_Comma = 74
80 Lit_Equals = 75
81 Lit_Dollar = 76
82 Lit_DRightBracket = 77
83 Lit_Tilde = 78
84 Lit_Pound = 79
85 Lit_TPound = 80
86 Lit_TDot = 81
87 Lit_Slash = 82
88 Lit_Percent = 83
89 Lit_Colon = 84
90 Lit_Digits = 85
91 Lit_At = 86
92 Lit_ArithVarLike = 87
93 Lit_BadBackslash = 88
94 Lit_CompDummy = 89
95 Backtick_Right = 90
96 Backtick_Quoted = 91
97 Backtick_DoubleQuote = 92
98 Backtick_Other = 93
99 History_Op = 94
100 History_Num = 95
101 History_Search = 96
102 History_Other = 97
103 Op_Newline = 98
104 Op_Amp = 99
105 Op_Pipe = 100
106 Op_PipeAmp = 101
107 Op_DAmp = 102
108 Op_DPipe = 103
109 Op_Semi = 104
110 Op_DSemi = 105
111 Op_SemiAmp = 106
112 Op_DSemiAmp = 107
113 Op_LParen = 108
114 Op_RParen = 109
115 Op_DLeftParen = 110
116 Op_DRightParen = 111
117 Op_Less = 112
118 Op_Great = 113
119 Op_Bang = 114
120 Op_LBracket = 115
121 Op_RBracket = 116
122 Op_LBrace = 117
123 Op_RBrace = 118
124 Expr_Reserved = 119
125 Expr_Symbol = 120
126 Expr_Name = 121
127 Expr_DecInt = 122
128 Expr_BinInt = 123
129 Expr_OctInt = 124
130 Expr_HexInt = 125
131 Expr_Float = 126
132 Expr_Bang = 127
133 Expr_Dot = 128
134 Expr_DDot = 129
135 Expr_Colon = 130
136 Expr_RArrow = 131
137 Expr_RDArrow = 132
138 Expr_DSlash = 133
139 Expr_TEqual = 134
140 Expr_NotDEqual = 135
141 Expr_TildeDEqual = 136
142 Expr_At = 137
143 Expr_DoubleAt = 138
144 Expr_Ellipsis = 139
145 Expr_Dollar = 140
146 Expr_NotTilde = 141
147 Expr_DTilde = 142
148 Expr_NotDTilde = 143
149 Expr_DStarEqual = 144
150 Expr_DSlashEqual = 145
151 Expr_CastedDummy = 146
152 Expr_Null = 147
153 Expr_True = 148
154 Expr_False = 149
155 Expr_And = 150
156 Expr_Or = 151
157 Expr_Not = 152
158 Expr_For = 153
159 Expr_Is = 154
160 Expr_In = 155
161 Expr_If = 156
162 Expr_Else = 157
163 Expr_Func = 158
164 Expr_Capture = 159
165 Expr_As = 160
166 Char_OneChar = 161
167 Char_Stop = 162
168 Char_Hex = 163
169 Char_YHex = 164
170 Char_Octal3 = 165
171 Char_Octal4 = 166
172 Char_Unicode4 = 167
173 Char_SurrogatePair = 168
174 Char_Unicode8 = 169
175 Char_UBraced = 170
176 Char_Pound = 171
177 Char_AsciiControl = 172
178 BashRegex_LParen = 173
179 BashRegex_AllowedInParens = 174
180 Eggex_Start = 175
181 Eggex_End = 176
182 Eggex_Dot = 177
183 Redir_Less = 178
184 Redir_Great = 179
185 Redir_DLess = 180
186 Redir_TLess = 181
187 Redir_DGreat = 182
188 Redir_GreatAnd = 183
189 Redir_LessAnd = 184
190 Redir_DLessDash = 185
191 Redir_LessGreat = 186
192 Redir_Clobber = 187
193 Redir_AndGreat = 188
194 Redir_AndDGreat = 189
195 Left_DoubleQuote = 190
196 Left_JDoubleQuote = 191
197 Left_SingleQuote = 192
198 Left_DollarSingleQuote = 193
199 Left_RSingleQuote = 194
200 Left_USingleQuote = 195
201 Left_BSingleQuote = 196
202 Left_TDoubleQuote = 197
203 Left_DollarTDoubleQuote = 198
204 Left_TSingleQuote = 199
205 Left_RTSingleQuote = 200
206 Left_UTSingleQuote = 201
207 Left_BTSingleQuote = 202
208 Left_Backtick = 203
209 Left_DollarParen = 204
210 Left_DollarBrace = 205
211 Left_DollarBraceZsh = 206
212 Left_DollarDParen = 207
213 Left_DollarBracket = 208
214 Left_DollarDoubleQuote = 209
215 Left_ProcSubIn = 210
216 Left_ProcSubOut = 211
217 Left_AtParen = 212
218 Left_CaretParen = 213
219 Left_CaretBracket = 214
220 Left_CaretBrace = 215
221 Left_CaretDoubleQuote = 216
222 Left_ColonPipe = 217
223 Left_PercentParen = 218
224 Right_DoubleQuote = 219
225 Right_SingleQuote = 220
226 Right_Backtick = 221
227 Right_DollarBrace = 222
228 Right_DollarDParen = 223
229 Right_DollarDoubleQuote = 224
230 Right_DollarSingleQuote = 225
231 Right_Subshell = 226
232 Right_ShFunction = 227
233 Right_CasePat = 228
234 Right_ShArrayLiteral = 229
235 Right_ExtGlob = 230
236 Right_BashRegexGroup = 231
237 Right_BlockLiteral = 232
238 ExtGlob_Comma = 233
239 ExtGlob_At = 234
240 ExtGlob_Star = 235
241 ExtGlob_Plus = 236
242 ExtGlob_QMark = 237
243 ExtGlob_Bang = 238
244 VSub_DollarName = 239
245 VSub_Name = 240
246 VSub_Number = 241
247 VSub_Bang = 242
248 VSub_At = 243
249 VSub_Pound = 244
250 VSub_Dollar = 245
251 VSub_Star = 246
252 VSub_Hyphen = 247
253 VSub_QMark = 248
254 VSub_Dot = 249
255 VTest_ColonHyphen = 250
256 VTest_Hyphen = 251
257 VTest_ColonEquals = 252
258 VTest_Equals = 253
259 VTest_ColonQMark = 254
260 VTest_QMark = 255
261 VTest_ColonPlus = 256
262 VTest_Plus = 257
263 VOp0_Q = 258
264 VOp0_E = 259
265 VOp0_P = 260
266 VOp0_A = 261
267 VOp0_a = 262
268 VOp1_Percent = 263
269 VOp1_DPercent = 264
270 VOp1_Pound = 265
271 VOp1_DPound = 266
272 VOp1_Caret = 267
273 VOp1_DCaret = 268
274 VOp1_Comma = 269
275 VOp1_DComma = 270
276 VOpYsh_Pipe = 271
277 VOpYsh_Space = 272
278 VOp2_Slash = 273
279 VOp2_Colon = 274
280 VOp2_LBracket = 275
281 VOp2_RBracket = 276
282 VOp3_At = 277
283 VOp3_Star = 278
284 Node_PostDPlus = 279
285 Node_PostDMinus = 280
286 Node_UnaryPlus = 281
287 Node_UnaryMinus = 282
288 Node_NotIn = 283
289 Node_IsNot = 284
290 KW_DLeftBracket = 285
291 KW_Bang = 286
292 KW_For = 287
293 KW_While = 288
294 KW_Until = 289
295 KW_Do = 290
296 KW_Done = 291
297 KW_In = 292
298 KW_Case = 293
299 KW_Esac = 294
300 KW_If = 295
301 KW_Fi = 296
302 KW_Then = 297
303 KW_Else = 298
304 KW_Elif = 299
305 KW_Function = 300
306 KW_Time = 301
307 KW_Const = 302
308 KW_Var = 303
309 KW_SetVar = 304
310 KW_SetGlobal = 305
311 KW_Call = 306
312 KW_Proc = 307
313 KW_Typed = 308
314 KW_Func = 309
315 ControlFlow_Break = 310
316 ControlFlow_Continue = 311
317 ControlFlow_Return = 312
318 ControlFlow_Exit = 313
319 LookAhead_FuncParens = 314
320 Glob_LBracket = 315
321 Glob_RBracket = 316
322 Glob_Star = 317
323 Glob_QMark = 318
324 Glob_Bang = 319
325 Glob_Caret = 320
326 Glob_EscapedChar = 321
327 Glob_BadBackslash = 322
328 Glob_CleanLiterals = 323
329 Glob_OtherLiteral = 324
330 Format_EscapedPercent = 325
331 Format_Percent = 326
332 Format_Flag = 327
333 Format_Num = 328
334 Format_Dot = 329
335 Format_Type = 330
336 Format_Star = 331
337 Format_Time = 332
338 Format_Zero = 333
339 PS_Subst = 334
340 PS_Octal3 = 335
341 PS_LBrace = 336
342 PS_RBrace = 337
343 PS_Literals = 338
344 PS_BadBackslash = 339
345 Range_Int = 340
346 Range_Char = 341
347 Range_Dots = 342
348 Range_Other = 343
349 J8_LBracket = 344
350 J8_RBracket = 345
351 J8_LBrace = 346
352 J8_RBrace = 347
353 J8_Comma = 348
354 J8_Colon = 349
355 J8_Null = 350
356 J8_Bool = 351
357 J8_Int = 352
358 J8_Float = 353
359 J8_String = 354
360 J8_Identifier = 355
361 J8_Newline = 356
362 J8_Tab = 357
363 J8_LParen = 358
364 J8_RParen = 359
365 J8_Operator = 360
366 BoolUnary_z = 361
367 BoolUnary_n = 362
368 BoolUnary_o = 363
369 BoolUnary_t = 364
370 BoolUnary_v = 365
371 BoolUnary_R = 366
372 BoolUnary_a = 367
373 BoolUnary_b = 368
374 BoolUnary_c = 369
375 BoolUnary_d = 370
376 BoolUnary_e = 371
377 BoolUnary_f = 372
378 BoolUnary_g = 373
379 BoolUnary_h = 374
380 BoolUnary_k = 375
381 BoolUnary_L = 376
382 BoolUnary_p = 377
383 BoolUnary_r = 378
384 BoolUnary_s = 379
385 BoolUnary_S = 380
386 BoolUnary_u = 381
387 BoolUnary_w = 382
388 BoolUnary_x = 383
389 BoolUnary_O = 384
390 BoolUnary_G = 385
391 BoolUnary_N = 386
392 BoolBinary_GlobEqual = 387
393 BoolBinary_GlobDEqual = 388
394 BoolBinary_GlobNEqual = 389
395 BoolBinary_EqualTilde = 390
396 BoolBinary_ef = 391
397 BoolBinary_nt = 392
398 BoolBinary_ot = 393
399 BoolBinary_eq = 394
400 BoolBinary_ne = 395
401 BoolBinary_gt = 396
402 BoolBinary_ge = 397
403 BoolBinary_lt = 398
404 BoolBinary_le = 399
405 BoolBinary_Equal = 400
406 BoolBinary_DEqual = 401
407 BoolBinary_NEqual = 402
408 ARRAY_SIZE = 403
409
410_Id_str = {
411 1: 'Id.Word_Compound',
412 2: 'Id.Arith_Semi',
413 3: 'Id.Arith_Comma',
414 4: 'Id.Arith_Plus',
415 5: 'Id.Arith_Minus',
416 6: 'Id.Arith_Star',
417 7: 'Id.Arith_Slash',
418 8: 'Id.Arith_Percent',
419 9: 'Id.Arith_DPlus',
420 10: 'Id.Arith_DMinus',
421 11: 'Id.Arith_DStar',
422 12: 'Id.Arith_LParen',
423 13: 'Id.Arith_RParen',
424 14: 'Id.Arith_LBracket',
425 15: 'Id.Arith_RBracket',
426 16: 'Id.Arith_RBrace',
427 17: 'Id.Arith_QMark',
428 18: 'Id.Arith_Colon',
429 19: 'Id.Arith_LessEqual',
430 20: 'Id.Arith_Less',
431 21: 'Id.Arith_GreatEqual',
432 22: 'Id.Arith_Great',
433 23: 'Id.Arith_DEqual',
434 24: 'Id.Arith_NEqual',
435 25: 'Id.Arith_DAmp',
436 26: 'Id.Arith_DPipe',
437 27: 'Id.Arith_Bang',
438 28: 'Id.Arith_DGreat',
439 29: 'Id.Arith_DLess',
440 30: 'Id.Arith_Amp',
441 31: 'Id.Arith_Pipe',
442 32: 'Id.Arith_Caret',
443 33: 'Id.Arith_Tilde',
444 34: 'Id.Arith_Equal',
445 35: 'Id.Arith_PlusEqual',
446 36: 'Id.Arith_MinusEqual',
447 37: 'Id.Arith_StarEqual',
448 38: 'Id.Arith_SlashEqual',
449 39: 'Id.Arith_PercentEqual',
450 40: 'Id.Arith_DGreatEqual',
451 41: 'Id.Arith_DLessEqual',
452 42: 'Id.Arith_AmpEqual',
453 43: 'Id.Arith_CaretEqual',
454 44: 'Id.Arith_PipeEqual',
455 45: 'Id.Eof_Real',
456 46: 'Id.Eof_RParen',
457 47: 'Id.Eof_Backtick',
458 48: 'Id.Undefined_Tok',
459 49: 'Id.Unknown_Tok',
460 50: 'Id.Unknown_Backslash',
461 51: 'Id.Unknown_DEqual',
462 52: 'Id.Eol_Tok',
463 53: 'Id.Ignored_LineCont',
464 54: 'Id.Ignored_Space',
465 55: 'Id.Ignored_Comment',
466 56: 'Id.Ignored_Newline',
467 57: 'Id.WS_Space',
468 58: 'Id.Lit_Chars',
469 59: 'Id.Lit_CharsWithoutPrefix',
470 60: 'Id.Lit_VarLike',
471 61: 'Id.Lit_ArrayLhsOpen',
472 62: 'Id.Lit_ArrayLhsClose',
473 63: 'Id.Lit_Splice',
474 64: 'Id.Lit_AtLBracket',
475 65: 'Id.Lit_AtLBraceDot',
476 66: 'Id.Lit_Other',
477 67: 'Id.Lit_EscapedChar',
478 68: 'Id.Lit_LBracket',
479 69: 'Id.Lit_RBracket',
480 70: 'Id.Lit_Star',
481 71: 'Id.Lit_QMark',
482 72: 'Id.Lit_LBrace',
483 73: 'Id.Lit_RBrace',
484 74: 'Id.Lit_Comma',
485 75: 'Id.Lit_Equals',
486 76: 'Id.Lit_Dollar',
487 77: 'Id.Lit_DRightBracket',
488 78: 'Id.Lit_Tilde',
489 79: 'Id.Lit_Pound',
490 80: 'Id.Lit_TPound',
491 81: 'Id.Lit_TDot',
492 82: 'Id.Lit_Slash',
493 83: 'Id.Lit_Percent',
494 84: 'Id.Lit_Colon',
495 85: 'Id.Lit_Digits',
496 86: 'Id.Lit_At',
497 87: 'Id.Lit_ArithVarLike',
498 88: 'Id.Lit_BadBackslash',
499 89: 'Id.Lit_CompDummy',
500 90: 'Id.Backtick_Right',
501 91: 'Id.Backtick_Quoted',
502 92: 'Id.Backtick_DoubleQuote',
503 93: 'Id.Backtick_Other',
504 94: 'Id.History_Op',
505 95: 'Id.History_Num',
506 96: 'Id.History_Search',
507 97: 'Id.History_Other',
508 98: 'Id.Op_Newline',
509 99: 'Id.Op_Amp',
510 100: 'Id.Op_Pipe',
511 101: 'Id.Op_PipeAmp',
512 102: 'Id.Op_DAmp',
513 103: 'Id.Op_DPipe',
514 104: 'Id.Op_Semi',
515 105: 'Id.Op_DSemi',
516 106: 'Id.Op_SemiAmp',
517 107: 'Id.Op_DSemiAmp',
518 108: 'Id.Op_LParen',
519 109: 'Id.Op_RParen',
520 110: 'Id.Op_DLeftParen',
521 111: 'Id.Op_DRightParen',
522 112: 'Id.Op_Less',
523 113: 'Id.Op_Great',
524 114: 'Id.Op_Bang',
525 115: 'Id.Op_LBracket',
526 116: 'Id.Op_RBracket',
527 117: 'Id.Op_LBrace',
528 118: 'Id.Op_RBrace',
529 119: 'Id.Expr_Reserved',
530 120: 'Id.Expr_Symbol',
531 121: 'Id.Expr_Name',
532 122: 'Id.Expr_DecInt',
533 123: 'Id.Expr_BinInt',
534 124: 'Id.Expr_OctInt',
535 125: 'Id.Expr_HexInt',
536 126: 'Id.Expr_Float',
537 127: 'Id.Expr_Bang',
538 128: 'Id.Expr_Dot',
539 129: 'Id.Expr_DDot',
540 130: 'Id.Expr_Colon',
541 131: 'Id.Expr_RArrow',
542 132: 'Id.Expr_RDArrow',
543 133: 'Id.Expr_DSlash',
544 134: 'Id.Expr_TEqual',
545 135: 'Id.Expr_NotDEqual',
546 136: 'Id.Expr_TildeDEqual',
547 137: 'Id.Expr_At',
548 138: 'Id.Expr_DoubleAt',
549 139: 'Id.Expr_Ellipsis',
550 140: 'Id.Expr_Dollar',
551 141: 'Id.Expr_NotTilde',
552 142: 'Id.Expr_DTilde',
553 143: 'Id.Expr_NotDTilde',
554 144: 'Id.Expr_DStarEqual',
555 145: 'Id.Expr_DSlashEqual',
556 146: 'Id.Expr_CastedDummy',
557 147: 'Id.Expr_Null',
558 148: 'Id.Expr_True',
559 149: 'Id.Expr_False',
560 150: 'Id.Expr_And',
561 151: 'Id.Expr_Or',
562 152: 'Id.Expr_Not',
563 153: 'Id.Expr_For',
564 154: 'Id.Expr_Is',
565 155: 'Id.Expr_In',
566 156: 'Id.Expr_If',
567 157: 'Id.Expr_Else',
568 158: 'Id.Expr_Func',
569 159: 'Id.Expr_Capture',
570 160: 'Id.Expr_As',
571 161: 'Id.Char_OneChar',
572 162: 'Id.Char_Stop',
573 163: 'Id.Char_Hex',
574 164: 'Id.Char_YHex',
575 165: 'Id.Char_Octal3',
576 166: 'Id.Char_Octal4',
577 167: 'Id.Char_Unicode4',
578 168: 'Id.Char_SurrogatePair',
579 169: 'Id.Char_Unicode8',
580 170: 'Id.Char_UBraced',
581 171: 'Id.Char_Pound',
582 172: 'Id.Char_AsciiControl',
583 173: 'Id.BashRegex_LParen',
584 174: 'Id.BashRegex_AllowedInParens',
585 175: 'Id.Eggex_Start',
586 176: 'Id.Eggex_End',
587 177: 'Id.Eggex_Dot',
588 178: 'Id.Redir_Less',
589 179: 'Id.Redir_Great',
590 180: 'Id.Redir_DLess',
591 181: 'Id.Redir_TLess',
592 182: 'Id.Redir_DGreat',
593 183: 'Id.Redir_GreatAnd',
594 184: 'Id.Redir_LessAnd',
595 185: 'Id.Redir_DLessDash',
596 186: 'Id.Redir_LessGreat',
597 187: 'Id.Redir_Clobber',
598 188: 'Id.Redir_AndGreat',
599 189: 'Id.Redir_AndDGreat',
600 190: 'Id.Left_DoubleQuote',
601 191: 'Id.Left_JDoubleQuote',
602 192: 'Id.Left_SingleQuote',
603 193: 'Id.Left_DollarSingleQuote',
604 194: 'Id.Left_RSingleQuote',
605 195: 'Id.Left_USingleQuote',
606 196: 'Id.Left_BSingleQuote',
607 197: 'Id.Left_TDoubleQuote',
608 198: 'Id.Left_DollarTDoubleQuote',
609 199: 'Id.Left_TSingleQuote',
610 200: 'Id.Left_RTSingleQuote',
611 201: 'Id.Left_UTSingleQuote',
612 202: 'Id.Left_BTSingleQuote',
613 203: 'Id.Left_Backtick',
614 204: 'Id.Left_DollarParen',
615 205: 'Id.Left_DollarBrace',
616 206: 'Id.Left_DollarBraceZsh',
617 207: 'Id.Left_DollarDParen',
618 208: 'Id.Left_DollarBracket',
619 209: 'Id.Left_DollarDoubleQuote',
620 210: 'Id.Left_ProcSubIn',
621 211: 'Id.Left_ProcSubOut',
622 212: 'Id.Left_AtParen',
623 213: 'Id.Left_CaretParen',
624 214: 'Id.Left_CaretBracket',
625 215: 'Id.Left_CaretBrace',
626 216: 'Id.Left_CaretDoubleQuote',
627 217: 'Id.Left_ColonPipe',
628 218: 'Id.Left_PercentParen',
629 219: 'Id.Right_DoubleQuote',
630 220: 'Id.Right_SingleQuote',
631 221: 'Id.Right_Backtick',
632 222: 'Id.Right_DollarBrace',
633 223: 'Id.Right_DollarDParen',
634 224: 'Id.Right_DollarDoubleQuote',
635 225: 'Id.Right_DollarSingleQuote',
636 226: 'Id.Right_Subshell',
637 227: 'Id.Right_ShFunction',
638 228: 'Id.Right_CasePat',
639 229: 'Id.Right_ShArrayLiteral',
640 230: 'Id.Right_ExtGlob',
641 231: 'Id.Right_BashRegexGroup',
642 232: 'Id.Right_BlockLiteral',
643 233: 'Id.ExtGlob_Comma',
644 234: 'Id.ExtGlob_At',
645 235: 'Id.ExtGlob_Star',
646 236: 'Id.ExtGlob_Plus',
647 237: 'Id.ExtGlob_QMark',
648 238: 'Id.ExtGlob_Bang',
649 239: 'Id.VSub_DollarName',
650 240: 'Id.VSub_Name',
651 241: 'Id.VSub_Number',
652 242: 'Id.VSub_Bang',
653 243: 'Id.VSub_At',
654 244: 'Id.VSub_Pound',
655 245: 'Id.VSub_Dollar',
656 246: 'Id.VSub_Star',
657 247: 'Id.VSub_Hyphen',
658 248: 'Id.VSub_QMark',
659 249: 'Id.VSub_Dot',
660 250: 'Id.VTest_ColonHyphen',
661 251: 'Id.VTest_Hyphen',
662 252: 'Id.VTest_ColonEquals',
663 253: 'Id.VTest_Equals',
664 254: 'Id.VTest_ColonQMark',
665 255: 'Id.VTest_QMark',
666 256: 'Id.VTest_ColonPlus',
667 257: 'Id.VTest_Plus',
668 258: 'Id.VOp0_Q',
669 259: 'Id.VOp0_E',
670 260: 'Id.VOp0_P',
671 261: 'Id.VOp0_A',
672 262: 'Id.VOp0_a',
673 263: 'Id.VOp1_Percent',
674 264: 'Id.VOp1_DPercent',
675 265: 'Id.VOp1_Pound',
676 266: 'Id.VOp1_DPound',
677 267: 'Id.VOp1_Caret',
678 268: 'Id.VOp1_DCaret',
679 269: 'Id.VOp1_Comma',
680 270: 'Id.VOp1_DComma',
681 271: 'Id.VOpYsh_Pipe',
682 272: 'Id.VOpYsh_Space',
683 273: 'Id.VOp2_Slash',
684 274: 'Id.VOp2_Colon',
685 275: 'Id.VOp2_LBracket',
686 276: 'Id.VOp2_RBracket',
687 277: 'Id.VOp3_At',
688 278: 'Id.VOp3_Star',
689 279: 'Id.Node_PostDPlus',
690 280: 'Id.Node_PostDMinus',
691 281: 'Id.Node_UnaryPlus',
692 282: 'Id.Node_UnaryMinus',
693 283: 'Id.Node_NotIn',
694 284: 'Id.Node_IsNot',
695 285: 'Id.KW_DLeftBracket',
696 286: 'Id.KW_Bang',
697 287: 'Id.KW_For',
698 288: 'Id.KW_While',
699 289: 'Id.KW_Until',
700 290: 'Id.KW_Do',
701 291: 'Id.KW_Done',
702 292: 'Id.KW_In',
703 293: 'Id.KW_Case',
704 294: 'Id.KW_Esac',
705 295: 'Id.KW_If',
706 296: 'Id.KW_Fi',
707 297: 'Id.KW_Then',
708 298: 'Id.KW_Else',
709 299: 'Id.KW_Elif',
710 300: 'Id.KW_Function',
711 301: 'Id.KW_Time',
712 302: 'Id.KW_Const',
713 303: 'Id.KW_Var',
714 304: 'Id.KW_SetVar',
715 305: 'Id.KW_SetGlobal',
716 306: 'Id.KW_Call',
717 307: 'Id.KW_Proc',
718 308: 'Id.KW_Typed',
719 309: 'Id.KW_Func',
720 310: 'Id.ControlFlow_Break',
721 311: 'Id.ControlFlow_Continue',
722 312: 'Id.ControlFlow_Return',
723 313: 'Id.ControlFlow_Exit',
724 314: 'Id.LookAhead_FuncParens',
725 315: 'Id.Glob_LBracket',
726 316: 'Id.Glob_RBracket',
727 317: 'Id.Glob_Star',
728 318: 'Id.Glob_QMark',
729 319: 'Id.Glob_Bang',
730 320: 'Id.Glob_Caret',
731 321: 'Id.Glob_EscapedChar',
732 322: 'Id.Glob_BadBackslash',
733 323: 'Id.Glob_CleanLiterals',
734 324: 'Id.Glob_OtherLiteral',
735 325: 'Id.Format_EscapedPercent',
736 326: 'Id.Format_Percent',
737 327: 'Id.Format_Flag',
738 328: 'Id.Format_Num',
739 329: 'Id.Format_Dot',
740 330: 'Id.Format_Type',
741 331: 'Id.Format_Star',
742 332: 'Id.Format_Time',
743 333: 'Id.Format_Zero',
744 334: 'Id.PS_Subst',
745 335: 'Id.PS_Octal3',
746 336: 'Id.PS_LBrace',
747 337: 'Id.PS_RBrace',
748 338: 'Id.PS_Literals',
749 339: 'Id.PS_BadBackslash',
750 340: 'Id.Range_Int',
751 341: 'Id.Range_Char',
752 342: 'Id.Range_Dots',
753 343: 'Id.Range_Other',
754 344: 'Id.J8_LBracket',
755 345: 'Id.J8_RBracket',
756 346: 'Id.J8_LBrace',
757 347: 'Id.J8_RBrace',
758 348: 'Id.J8_Comma',
759 349: 'Id.J8_Colon',
760 350: 'Id.J8_Null',
761 351: 'Id.J8_Bool',
762 352: 'Id.J8_Int',
763 353: 'Id.J8_Float',
764 354: 'Id.J8_String',
765 355: 'Id.J8_Identifier',
766 356: 'Id.J8_Newline',
767 357: 'Id.J8_Tab',
768 358: 'Id.J8_LParen',
769 359: 'Id.J8_RParen',
770 360: 'Id.J8_Operator',
771 361: 'Id.BoolUnary_z',
772 362: 'Id.BoolUnary_n',
773 363: 'Id.BoolUnary_o',
774 364: 'Id.BoolUnary_t',
775 365: 'Id.BoolUnary_v',
776 366: 'Id.BoolUnary_R',
777 367: 'Id.BoolUnary_a',
778 368: 'Id.BoolUnary_b',
779 369: 'Id.BoolUnary_c',
780 370: 'Id.BoolUnary_d',
781 371: 'Id.BoolUnary_e',
782 372: 'Id.BoolUnary_f',
783 373: 'Id.BoolUnary_g',
784 374: 'Id.BoolUnary_h',
785 375: 'Id.BoolUnary_k',
786 376: 'Id.BoolUnary_L',
787 377: 'Id.BoolUnary_p',
788 378: 'Id.BoolUnary_r',
789 379: 'Id.BoolUnary_s',
790 380: 'Id.BoolUnary_S',
791 381: 'Id.BoolUnary_u',
792 382: 'Id.BoolUnary_w',
793 383: 'Id.BoolUnary_x',
794 384: 'Id.BoolUnary_O',
795 385: 'Id.BoolUnary_G',
796 386: 'Id.BoolUnary_N',
797 387: 'Id.BoolBinary_GlobEqual',
798 388: 'Id.BoolBinary_GlobDEqual',
799 389: 'Id.BoolBinary_GlobNEqual',
800 390: 'Id.BoolBinary_EqualTilde',
801 391: 'Id.BoolBinary_ef',
802 392: 'Id.BoolBinary_nt',
803 393: 'Id.BoolBinary_ot',
804 394: 'Id.BoolBinary_eq',
805 395: 'Id.BoolBinary_ne',
806 396: 'Id.BoolBinary_gt',
807 397: 'Id.BoolBinary_ge',
808 398: 'Id.BoolBinary_lt',
809 399: 'Id.BoolBinary_le',
810 400: 'Id.BoolBinary_Equal',
811 401: 'Id.BoolBinary_DEqual',
812 402: 'Id.BoolBinary_NEqual',
813}
814
815def Id_str(val):
816 # type: (Id_t) -> str
817 return _Id_str[val]
818
819class Kind_t(pybase.SimpleObj):
820 pass
821
822class Kind(object):
823 Word = Kind_t(1)
824 Arith = Kind_t(2)
825 Eof = Kind_t(3)
826 Undefined = Kind_t(4)
827 Unknown = Kind_t(5)
828 Eol = Kind_t(6)
829 Ignored = Kind_t(7)
830 WS = Kind_t(8)
831 Lit = Kind_t(9)
832 Backtick = Kind_t(10)
833 History = Kind_t(11)
834 Op = Kind_t(12)
835 Expr = Kind_t(13)
836 Char = Kind_t(14)
837 BashRegex = Kind_t(15)
838 Eggex = Kind_t(16)
839 Redir = Kind_t(17)
840 Left = Kind_t(18)
841 Right = Kind_t(19)
842 ExtGlob = Kind_t(20)
843 VSub = Kind_t(21)
844 VTest = Kind_t(22)
845 VOp0 = Kind_t(23)
846 VOp1 = Kind_t(24)
847 VOpYsh = Kind_t(25)
848 VOp2 = Kind_t(26)
849 VOp3 = Kind_t(27)
850 Node = Kind_t(28)
851 KW = Kind_t(29)
852 ControlFlow = Kind_t(30)
853 LookAhead = Kind_t(31)
854 Glob = Kind_t(32)
855 Format = Kind_t(33)
856 PS = Kind_t(34)
857 Range = Kind_t(35)
858 J8 = Kind_t(36)
859 BoolUnary = Kind_t(37)
860 BoolBinary = Kind_t(38)
861
862_Kind_str = {
863 1: 'Kind.Word',
864 2: 'Kind.Arith',
865 3: 'Kind.Eof',
866 4: 'Kind.Undefined',
867 5: 'Kind.Unknown',
868 6: 'Kind.Eol',
869 7: 'Kind.Ignored',
870 8: 'Kind.WS',
871 9: 'Kind.Lit',
872 10: 'Kind.Backtick',
873 11: 'Kind.History',
874 12: 'Kind.Op',
875 13: 'Kind.Expr',
876 14: 'Kind.Char',
877 15: 'Kind.BashRegex',
878 16: 'Kind.Eggex',
879 17: 'Kind.Redir',
880 18: 'Kind.Left',
881 19: 'Kind.Right',
882 20: 'Kind.ExtGlob',
883 21: 'Kind.VSub',
884 22: 'Kind.VTest',
885 23: 'Kind.VOp0',
886 24: 'Kind.VOp1',
887 25: 'Kind.VOpYsh',
888 26: 'Kind.VOp2',
889 27: 'Kind.VOp3',
890 28: 'Kind.Node',
891 29: 'Kind.KW',
892 30: 'Kind.ControlFlow',
893 31: 'Kind.LookAhead',
894 32: 'Kind.Glob',
895 33: 'Kind.Format',
896 34: 'Kind.PS',
897 35: 'Kind.Range',
898 36: 'Kind.J8',
899 37: 'Kind.BoolUnary',
900 38: 'Kind.BoolBinary',
901}
902
903def Kind_str(val):
904 # type: (Kind_t) -> str
905 return _Kind_str[val]
906