sh-ast 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/README.md +116 -144
  2. package/dist/analyze/ansi-c-escapes.d.ts +1 -1
  3. package/dist/analyze/ansi-c-escapes.js +1 -1
  4. package/dist/analyze/enumerate-commands.d.ts +11 -16
  5. package/dist/analyze/enumerate-commands.d.ts.map +1 -1
  6. package/dist/analyze/enumerate-commands.js +82 -92
  7. package/dist/analyze/enumerate-commands.js.map +1 -1
  8. package/dist/analyze/index.d.ts +3 -2
  9. package/dist/analyze/index.d.ts.map +1 -1
  10. package/dist/analyze/index.js +1 -1
  11. package/dist/analyze/node-helpers.d.ts +10 -21
  12. package/dist/analyze/node-helpers.d.ts.map +1 -1
  13. package/dist/analyze/node-helpers.js +16 -27
  14. package/dist/analyze/node-helpers.js.map +1 -1
  15. package/dist/analyze/resolve-argv0.d.ts +6 -6
  16. package/dist/analyze/resolve-argv0.js +6 -6
  17. package/dist/analyze/resolve-word.d.ts +7 -10
  18. package/dist/analyze/resolve-word.d.ts.map +1 -1
  19. package/dist/analyze/resolve-word.js +39 -22
  20. package/dist/analyze/resolve-word.js.map +1 -1
  21. package/dist/analyze.d.ts +3780 -397
  22. package/dist/errors.d.ts +6 -79
  23. package/dist/errors.d.ts.map +1 -1
  24. package/dist/errors.js +5 -64
  25. package/dist/errors.js.map +1 -1
  26. package/dist/index.d.ts +16 -14
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +23 -4
  29. package/dist/index.js.map +1 -1
  30. package/dist/sh-ast.d.ts +3503 -1027
  31. package/dist/syntax-errors.d.ts +56 -0
  32. package/dist/syntax-errors.d.ts.map +1 -0
  33. package/dist/syntax-errors.js +80 -0
  34. package/dist/syntax-errors.js.map +1 -0
  35. package/dist/syntax-snapshot.d.ts +47 -0
  36. package/dist/syntax-snapshot.d.ts.map +1 -0
  37. package/dist/syntax-snapshot.js +121 -0
  38. package/dist/syntax-snapshot.js.map +1 -0
  39. package/dist/syntax-wire.d.ts +31 -0
  40. package/dist/syntax-wire.d.ts.map +1 -0
  41. package/dist/syntax-wire.js +202 -0
  42. package/dist/syntax-wire.js.map +1 -0
  43. package/dist/syntax.d.ts +65 -0
  44. package/dist/syntax.d.ts.map +1 -0
  45. package/dist/syntax.js +152 -0
  46. package/dist/syntax.js.map +1 -0
  47. package/dist/wasm-instance.d.ts +5 -8
  48. package/dist/wasm-instance.d.ts.map +1 -1
  49. package/dist/wasm-instance.js +44 -47
  50. package/dist/wasm-instance.js.map +1 -1
  51. package/generated/syntax-constants.d.ts +1652 -0
  52. package/generated/syntax-constants.js +1384 -0
  53. package/generated/syntax-schema.d.ts +60 -0
  54. package/generated/syntax-schema.js +1740 -0
  55. package/generated/syntax-types.d.ts +1977 -0
  56. package/package.json +2 -2
  57. package/shim/sh-ast.wasm +0 -0
  58. package/dist/normalize.d.ts +0 -52
  59. package/dist/normalize.d.ts.map +0 -1
  60. package/dist/normalize.js +0 -260
  61. package/dist/normalize.js.map +0 -1
  62. package/dist/parse.d.ts +0 -50
  63. package/dist/parse.d.ts.map +0 -1
  64. package/dist/parse.js +0 -125
  65. package/dist/parse.js.map +0 -1
  66. package/dist/types.d.ts +0 -74
  67. package/dist/types.d.ts.map +0 -1
  68. package/dist/types.js +0 -2
  69. package/dist/types.js.map +0 -1
  70. package/dist/visitor-keys.d.ts +0 -21
  71. package/dist/visitor-keys.d.ts.map +0 -1
  72. package/dist/visitor-keys.js +0 -23
  73. package/dist/visitor-keys.js.map +0 -1
  74. package/dist/walk.d.ts +0 -18
  75. package/dist/walk.d.ts.map +0 -1
  76. package/dist/walk.js +0 -40
  77. package/dist/walk.js.map +0 -1
  78. package/generated/child-type-schema.d.ts +0 -14
  79. package/generated/child-type-schema.js +0 -188
  80. package/generated/node-types.d.ts +0 -1002
  81. package/generated/position-fields.d.ts +0 -21
  82. package/generated/position-fields.js +0 -50
  83. package/generated/visitor-keys.d.ts +0 -11
  84. package/generated/visitor-keys.js +0 -50
@@ -0,0 +1,1384 @@
1
+ // Code generated by tools/gen-visitor-keys from mvdan.cc/sh/v3 v3.13.1. DO NOT EDIT.
2
+ // Faithful syntax values; see design/ARCHITECTURE.md.
3
+ /*
4
+ Copyright (c) 2016, Daniel Martí. All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are
8
+ met:
9
+
10
+ * Redistributions of source code must retain the above copyright
11
+ notice, this list of conditions and the following disclaimer.
12
+ * Redistributions in binary form must reproduce the above
13
+ copyright notice, this list of conditions and the following disclaimer
14
+ in the documentation and/or other materials provided with the
15
+ distribution.
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ */
32
+
33
+ /**
34
+ * Upstream BinAritOperator constant Add. Its numeric value is preserved exactly.
35
+ *
36
+ * +
37
+ *
38
+ * @public
39
+ */
40
+ export const Add = 81;
41
+
42
+ /**
43
+ * Upstream BinAritOperator constant AddAssgn. Its numeric value is preserved exactly.
44
+ *
45
+ * +=
46
+ *
47
+ * @public
48
+ */
49
+ export const AddAssgn = 49;
50
+
51
+ /**
52
+ * Upstream ParExpOperator constant AlternateUnset. Its numeric value is preserved exactly.
53
+ *
54
+ * +
55
+ *
56
+ * @public
57
+ */
58
+ export const AlternateUnset = 81;
59
+
60
+ /**
61
+ * Upstream ParExpOperator constant AlternateUnsetOrNull. Its numeric value is preserved exactly.
62
+ *
63
+ * :+
64
+ *
65
+ * @public
66
+ */
67
+ export const AlternateUnsetOrNull = 82;
68
+
69
+ /**
70
+ * Upstream BinAritOperator constant And. Its numeric value is preserved exactly.
71
+ *
72
+ * &
73
+ *
74
+ * @public
75
+ */
76
+ export const And = 10;
77
+
78
+ /**
79
+ * Upstream BinAritOperator constant AndArit. Its numeric value is preserved exactly.
80
+ *
81
+ * &&
82
+ *
83
+ * @public
84
+ */
85
+ export const AndArit = 11;
86
+
87
+ /**
88
+ * Upstream BinAritOperator constant AndAssgn. Its numeric value is preserved exactly.
89
+ *
90
+ * &=
91
+ *
92
+ * @public
93
+ */
94
+ export const AndAssgn = 54;
95
+
96
+ /**
97
+ * Upstream BinAritOperator constant AndBoolAssgn. Its numeric value is preserved exactly.
98
+ *
99
+ * &&=
100
+ *
101
+ * @public
102
+ */
103
+ export const AndBoolAssgn = 59;
104
+
105
+ /**
106
+ * Upstream BinCmdOperator constant AndStmt. Its numeric value is preserved exactly.
107
+ *
108
+ * &&
109
+ *
110
+ * @public
111
+ */
112
+ export const AndStmt = 11;
113
+
114
+ /**
115
+ * Upstream BinTestOperator constant AndTest. Its numeric value is preserved exactly.
116
+ *
117
+ * &&
118
+ *
119
+ * @public
120
+ */
121
+ export const AndTest = 11;
122
+
123
+ /**
124
+ * Upstream RedirOperator constant AppAll. Its numeric value is preserved exactly.
125
+ *
126
+ * &\>\>
127
+ *
128
+ * @public
129
+ */
130
+ export const AppAll = 76;
131
+
132
+ /**
133
+ * Upstream RedirOperator constant AppAllClob. Its numeric value is preserved exactly.
134
+ *
135
+ * &\>\>| with `LangZsh`
136
+ *
137
+ * @public
138
+ */
139
+ export const AppAllClob = 77;
140
+
141
+ /**
142
+ * Upstream RedirOperator constant AppClob. Its numeric value is preserved exactly.
143
+ *
144
+ * \>\>| with `LangZsh`
145
+ *
146
+ * @public
147
+ */
148
+ export const AppClob = 70;
149
+
150
+ /**
151
+ * Upstream RedirOperator constant AppOut. Its numeric value is preserved exactly.
152
+ *
153
+ * \>\>
154
+ *
155
+ * @public
156
+ */
157
+ export const AppOut = 64;
158
+
159
+ /**
160
+ * Upstream ParExpOperator constant ArrayExclude. Its numeric value is preserved exactly.
161
+ *
162
+ * :| with `LangZsh`
163
+ *
164
+ * @public
165
+ */
166
+ export const ArrayExclude = 94;
167
+
168
+ /**
169
+ * Upstream ParExpOperator constant ArrayIntersect. Its numeric value is preserved exactly.
170
+ *
171
+ * :* with `LangZsh`
172
+ *
173
+ * @public
174
+ */
175
+ export const ArrayIntersect = 95;
176
+
177
+ /**
178
+ * Upstream BinAritOperator constant Assgn. Its numeric value is preserved exactly.
179
+ *
180
+ * =
181
+ *
182
+ * @public
183
+ */
184
+ export const Assgn = 87;
185
+
186
+ /**
187
+ * Upstream ParExpOperator constant AssignUnset. Its numeric value is preserved exactly.
188
+ *
189
+ * =
190
+ *
191
+ * @public
192
+ */
193
+ export const AssignUnset = 87;
194
+
195
+ /**
196
+ * Upstream ParExpOperator constant AssignUnsetOrNull. Its numeric value is preserved exactly.
197
+ *
198
+ * :=
199
+ *
200
+ * @public
201
+ */
202
+ export const AssignUnsetOrNull = 88;
203
+
204
+ /**
205
+ * Upstream UnAritOperator constant BitNegation. Its numeric value is preserved exactly.
206
+ *
207
+ * ~
208
+ *
209
+ * @public
210
+ */
211
+ export const BitNegation = 40;
212
+
213
+ /**
214
+ * Upstream CaseOperator constant Break. Its numeric value is preserved exactly.
215
+ *
216
+ * ;;
217
+ *
218
+ * @public
219
+ */
220
+ export const Break = 35;
221
+
222
+ /**
223
+ * Upstream RedirOperator constant ClbOut. Its numeric value is preserved exactly.
224
+ *
225
+ * Deprecated: use `RdrClob`
226
+ *
227
+ * @public
228
+ */
229
+ export const ClbOut = 69;
230
+
231
+ /**
232
+ * Upstream ProcOperator constant CmdIn. Its numeric value is preserved exactly.
233
+ *
234
+ * \<(
235
+ *
236
+ * @public
237
+ */
238
+ export const CmdIn = 78;
239
+
240
+ /**
241
+ * Upstream ProcOperator constant CmdInTemp. Its numeric value is preserved exactly.
242
+ *
243
+ * =(
244
+ *
245
+ * @public
246
+ */
247
+ export const CmdInTemp = 79;
248
+
249
+ /**
250
+ * Upstream ProcOperator constant CmdOut. Its numeric value is preserved exactly.
251
+ *
252
+ * \>(
253
+ *
254
+ * @public
255
+ */
256
+ export const CmdOut = 80;
257
+
258
+ /**
259
+ * Upstream BinAritOperator constant Comma. Its numeric value is preserved exactly.
260
+ *
261
+ * ,
262
+ *
263
+ * @public
264
+ */
265
+ export const Comma = 98;
266
+
267
+ /**
268
+ * Upstream RedirOperator constant DashHdoc. Its numeric value is preserved exactly.
269
+ *
270
+ * \<\<-
271
+ *
272
+ * @public
273
+ */
274
+ export const DashHdoc = 72;
275
+
276
+ /**
277
+ * Upstream UnAritOperator constant Dec. Its numeric value is preserved exactly.
278
+ *
279
+ * --
280
+ *
281
+ * @public
282
+ */
283
+ export const Dec = 42;
284
+
285
+ /**
286
+ * Upstream ParExpOperator constant DefaultUnset. Its numeric value is preserved exactly.
287
+ *
288
+ * -
289
+ *
290
+ * @public
291
+ */
292
+ export const DefaultUnset = 83;
293
+
294
+ /**
295
+ * Upstream ParExpOperator constant DefaultUnsetOrNull. Its numeric value is preserved exactly.
296
+ *
297
+ * :-
298
+ *
299
+ * @public
300
+ */
301
+ export const DefaultUnsetOrNull = 84;
302
+
303
+ /**
304
+ * Upstream RedirOperator constant DplIn. Its numeric value is preserved exactly.
305
+ *
306
+ * \<&
307
+ *
308
+ * @public
309
+ */
310
+ export const DplIn = 67;
311
+
312
+ /**
313
+ * Upstream RedirOperator constant DplOut. Its numeric value is preserved exactly.
314
+ *
315
+ * \>&
316
+ *
317
+ * @public
318
+ */
319
+ export const DplOut = 68;
320
+
321
+ /**
322
+ * Upstream BinAritOperator constant Eql. Its numeric value is preserved exactly.
323
+ *
324
+ * ==
325
+ *
326
+ * @public
327
+ */
328
+ export const Eql = 45;
329
+
330
+ /**
331
+ * Upstream ParExpOperator constant ErrorUnset. Its numeric value is preserved exactly.
332
+ *
333
+ * ?
334
+ *
335
+ * @public
336
+ */
337
+ export const ErrorUnset = 85;
338
+
339
+ /**
340
+ * Upstream ParExpOperator constant ErrorUnsetOrNull. Its numeric value is preserved exactly.
341
+ *
342
+ * :?
343
+ *
344
+ * @public
345
+ */
346
+ export const ErrorUnsetOrNull = 86;
347
+
348
+ /**
349
+ * Upstream CaseOperator constant Fallthrough. Its numeric value is preserved exactly.
350
+ *
351
+ * ;&
352
+ *
353
+ * @public
354
+ */
355
+ export const Fallthrough = 36;
356
+
357
+ /**
358
+ * Upstream BinAritOperator constant Geq. Its numeric value is preserved exactly.
359
+ *
360
+ * \>=
361
+ *
362
+ * @public
363
+ */
364
+ export const Geq = 48;
365
+
366
+ /**
367
+ * Upstream GlobOperator constant GlobExcept. Its numeric value is preserved exactly.
368
+ *
369
+ * !(
370
+ *
371
+ * @public
372
+ */
373
+ export const GlobExcept = 143;
374
+
375
+ /**
376
+ * Upstream GlobOperator constant GlobOne. Its numeric value is preserved exactly.
377
+ *
378
+ * \@(
379
+ *
380
+ * @public
381
+ */
382
+ export const GlobOne = 142;
383
+
384
+ /**
385
+ * Upstream GlobOperator constant GlobOneOrMore. Its numeric value is preserved exactly.
386
+ *
387
+ * +(
388
+ *
389
+ * @public
390
+ */
391
+ export const GlobOneOrMore = 141;
392
+
393
+ /**
394
+ * Upstream GlobOperator constant GlobZeroOrMore. Its numeric value is preserved exactly.
395
+ *
396
+ * *(
397
+ *
398
+ * @public
399
+ */
400
+ export const GlobZeroOrMore = 140;
401
+
402
+ /**
403
+ * Upstream GlobOperator constant GlobZeroOrOne. Its numeric value is preserved exactly.
404
+ *
405
+ * ?(
406
+ *
407
+ * @public
408
+ */
409
+ export const GlobZeroOrOne = 139;
410
+
411
+ /**
412
+ * Upstream BinAritOperator constant Gtr. Its numeric value is preserved exactly.
413
+ *
414
+ * \>
415
+ *
416
+ * @public
417
+ */
418
+ export const Gtr = 63;
419
+
420
+ /**
421
+ * Upstream RedirOperator constant Hdoc. Its numeric value is preserved exactly.
422
+ *
423
+ * \<\<
424
+ *
425
+ * @public
426
+ */
427
+ export const Hdoc = 71;
428
+
429
+ /**
430
+ * Upstream UnAritOperator constant Inc. Its numeric value is preserved exactly.
431
+ *
432
+ * ++
433
+ *
434
+ * @public
435
+ */
436
+ export const Inc = 41;
437
+
438
+ /**
439
+ * Upstream LangVariant constant LangAuto. Its numeric value is preserved exactly.
440
+ *
441
+ * LangAuto corresponds to automatic language detection,
442
+ * commonly used by end-user applications like shfmt,
443
+ * which can guess a file's language variant given its filename or shebang.
444
+ *
445
+ * At this time, `Variant` does not support LangAuto.
446
+ *
447
+ * @public
448
+ */
449
+ export const LangAuto = 32;
450
+
451
+ /**
452
+ * Upstream LangVariant constant LangBash. Its numeric value is preserved exactly.
453
+ *
454
+ * LangBash corresponds to the GNU Bash language, as described in its
455
+ * manual at https://www.gnu.org/software/bash/manual/bash.html.
456
+ *
457
+ * We currently follow Bash version 5.2.
458
+ *
459
+ * Its string representation is "bash".
460
+ *
461
+ * @public
462
+ */
463
+ export const LangBash = 1;
464
+
465
+ /**
466
+ * Upstream LangVariant constant LangBats. Its numeric value is preserved exactly.
467
+ *
468
+ * LangBats corresponds to the Bash Automated Testing System language,
469
+ * as described at https://github.com/bats-core/bats-core. Note that
470
+ * it's just a small extension of the Bash language.
471
+ *
472
+ * Its string representation is "bats".
473
+ *
474
+ * @public
475
+ */
476
+ export const LangBats = 8;
477
+
478
+ /**
479
+ * Upstream LangVariant constant LangMirBSDKorn. Its numeric value is preserved exactly.
480
+ *
481
+ * LangMirBSDKorn corresponds to the MirBSD Korn Shell, also known as
482
+ * mksh, as described at http://www.mirbsd.org/htman/i386/man1/mksh.htm.
483
+ * Note that it shares some features with Bash, due to the shared
484
+ * ancestry that is ksh.
485
+ *
486
+ * We currently follow mksh version 59.
487
+ *
488
+ * Its string representation is "mksh".
489
+ *
490
+ * @public
491
+ */
492
+ export const LangMirBSDKorn = 4;
493
+
494
+ /**
495
+ * Upstream LangVariant constant LangPOSIX. Its numeric value is preserved exactly.
496
+ *
497
+ * LangPOSIX corresponds to the POSIX Shell language, as described at
498
+ * https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html.
499
+ *
500
+ * Its string representation is "posix" or "sh".
501
+ *
502
+ * @public
503
+ */
504
+ export const LangPOSIX = 2;
505
+
506
+ /**
507
+ * Upstream LangVariant constant LangZsh. Its numeric value is preserved exactly.
508
+ *
509
+ * LangZsh corresponds to the Z shell, as described at https://www.zsh.org/.
510
+ *
511
+ * Note that its support in the syntax package is experimental and
512
+ * incomplete for now. See https://github.com/mvdan/sh/issues/120.
513
+ *
514
+ * We currently follow Zsh version 5.9.
515
+ *
516
+ * Its string representation is "zsh".
517
+ *
518
+ * @public
519
+ */
520
+ export const LangZsh = 16;
521
+
522
+ /**
523
+ * Upstream BinAritOperator constant Leq. Its numeric value is preserved exactly.
524
+ *
525
+ * \<=
526
+ *
527
+ * @public
528
+ */
529
+ export const Leq = 47;
530
+
531
+ /**
532
+ * Upstream ParExpOperator constant LowerAll. Its numeric value is preserved exactly.
533
+ *
534
+ * ,,
535
+ *
536
+ * @public
537
+ */
538
+ export const LowerAll = 99;
539
+
540
+ /**
541
+ * Upstream ParExpOperator constant LowerFirst. Its numeric value is preserved exactly.
542
+ *
543
+ * ,
544
+ *
545
+ * @public
546
+ */
547
+ export const LowerFirst = 98;
548
+
549
+ /**
550
+ * Upstream BinAritOperator constant Lss. Its numeric value is preserved exactly.
551
+ *
552
+ * \<
553
+ *
554
+ * @public
555
+ */
556
+ export const Lss = 65;
557
+
558
+ /**
559
+ * Upstream ParExpOperator constant MatchEmpty. Its numeric value is preserved exactly.
560
+ *
561
+ * :# with `LangZsh`
562
+ *
563
+ * @public
564
+ */
565
+ export const MatchEmpty = 93;
566
+
567
+ /**
568
+ * Upstream UnAritOperator constant Minus. Its numeric value is preserved exactly.
569
+ *
570
+ * -
571
+ *
572
+ * @public
573
+ */
574
+ export const Minus = 83;
575
+
576
+ /**
577
+ * Upstream BinAritOperator constant Mul. Its numeric value is preserved exactly.
578
+ *
579
+ * *
580
+ *
581
+ * @public
582
+ */
583
+ export const Mul = 43;
584
+
585
+ /**
586
+ * Upstream BinAritOperator constant MulAssgn. Its numeric value is preserved exactly.
587
+ *
588
+ * *=
589
+ *
590
+ * @public
591
+ */
592
+ export const MulAssgn = 51;
593
+
594
+ /**
595
+ * Upstream ParNamesOperator constant NamesPrefix. Its numeric value is preserved exactly.
596
+ *
597
+ * *
598
+ *
599
+ * @public
600
+ */
601
+ export const NamesPrefix = 43;
602
+
603
+ /**
604
+ * Upstream ParNamesOperator constant NamesPrefixWords. Its numeric value is preserved exactly.
605
+ *
606
+ * \@
607
+ *
608
+ * @public
609
+ */
610
+ export const NamesPrefixWords = 100;
611
+
612
+ /**
613
+ * Upstream BinAritOperator constant Neq. Its numeric value is preserved exactly.
614
+ *
615
+ * !=
616
+ *
617
+ * @public
618
+ */
619
+ export const Neq = 46;
620
+
621
+ /**
622
+ * Upstream UnAritOperator constant Not. Its numeric value is preserved exactly.
623
+ *
624
+ * !
625
+ *
626
+ * @public
627
+ */
628
+ export const Not = 39;
629
+
630
+ /**
631
+ * Upstream BinAritOperator constant Or. Its numeric value is preserved exactly.
632
+ *
633
+ * |
634
+ *
635
+ * @public
636
+ */
637
+ export const Or = 13;
638
+
639
+ /**
640
+ * Upstream BinAritOperator constant OrArit. Its numeric value is preserved exactly.
641
+ *
642
+ * ||
643
+ *
644
+ * @public
645
+ */
646
+ export const OrArit = 12;
647
+
648
+ /**
649
+ * Upstream BinAritOperator constant OrAssgn. Its numeric value is preserved exactly.
650
+ *
651
+ * |=
652
+ *
653
+ * @public
654
+ */
655
+ export const OrAssgn = 55;
656
+
657
+ /**
658
+ * Upstream BinAritOperator constant OrBoolAssgn. Its numeric value is preserved exactly.
659
+ *
660
+ * ||=
661
+ *
662
+ * @public
663
+ */
664
+ export const OrBoolAssgn = 60;
665
+
666
+ /**
667
+ * Upstream BinCmdOperator constant OrStmt. Its numeric value is preserved exactly.
668
+ *
669
+ * ||
670
+ *
671
+ * @public
672
+ */
673
+ export const OrStmt = 12;
674
+
675
+ /**
676
+ * Upstream BinTestOperator constant OrTest. Its numeric value is preserved exactly.
677
+ *
678
+ * ||
679
+ *
680
+ * @public
681
+ */
682
+ export const OrTest = 12;
683
+
684
+ /**
685
+ * Upstream ParExpOperator constant OtherParamOps. Its numeric value is preserved exactly.
686
+ *
687
+ * \@
688
+ *
689
+ * @public
690
+ */
691
+ export const OtherParamOps = 100;
692
+
693
+ /**
694
+ * Upstream BinCmdOperator constant Pipe. Its numeric value is preserved exactly.
695
+ *
696
+ * |
697
+ *
698
+ * @public
699
+ */
700
+ export const Pipe = 13;
701
+
702
+ /**
703
+ * Upstream BinCmdOperator constant PipeAll. Its numeric value is preserved exactly.
704
+ *
705
+ * |&
706
+ *
707
+ * @public
708
+ */
709
+ export const PipeAll = 14;
710
+
711
+ /**
712
+ * Upstream UnAritOperator constant Plus. Its numeric value is preserved exactly.
713
+ *
714
+ * +
715
+ *
716
+ * @public
717
+ */
718
+ export const Plus = 81;
719
+
720
+ /**
721
+ * Upstream BinAritOperator constant Pow. Its numeric value is preserved exactly.
722
+ *
723
+ * **
724
+ *
725
+ * @public
726
+ */
727
+ export const Pow = 44;
728
+
729
+ /**
730
+ * Upstream BinAritOperator constant PowAssgn. Its numeric value is preserved exactly.
731
+ *
732
+ * **=
733
+ *
734
+ * @public
735
+ */
736
+ export const PowAssgn = 62;
737
+
738
+ /**
739
+ * Upstream BinAritOperator constant Quo. Its numeric value is preserved exactly.
740
+ *
741
+ * /
742
+ *
743
+ * @public
744
+ */
745
+ export const Quo = 101;
746
+
747
+ /**
748
+ * Upstream BinAritOperator constant QuoAssgn. Its numeric value is preserved exactly.
749
+ *
750
+ * /=
751
+ *
752
+ * @public
753
+ */
754
+ export const QuoAssgn = 52;
755
+
756
+ /**
757
+ * Upstream RedirOperator constant RdrAll. Its numeric value is preserved exactly.
758
+ *
759
+ * &\>
760
+ *
761
+ * @public
762
+ */
763
+ export const RdrAll = 74;
764
+
765
+ /**
766
+ * Upstream RedirOperator constant RdrAllClob. Its numeric value is preserved exactly.
767
+ *
768
+ * &\>| with `LangZsh`
769
+ *
770
+ * @public
771
+ */
772
+ export const RdrAllClob = 75;
773
+
774
+ /**
775
+ * Upstream RedirOperator constant RdrClob. Its numeric value is preserved exactly.
776
+ *
777
+ * \>|
778
+ *
779
+ * @public
780
+ */
781
+ export const RdrClob = 69;
782
+
783
+ /**
784
+ * Upstream RedirOperator constant RdrIn. Its numeric value is preserved exactly.
785
+ *
786
+ * \<
787
+ *
788
+ * @public
789
+ */
790
+ export const RdrIn = 65;
791
+
792
+ /**
793
+ * Upstream RedirOperator constant RdrInOut. Its numeric value is preserved exactly.
794
+ *
795
+ * \<\>
796
+ *
797
+ * @public
798
+ */
799
+ export const RdrInOut = 66;
800
+
801
+ /**
802
+ * Upstream RedirOperator constant RdrOut. Its numeric value is preserved exactly.
803
+ *
804
+ * \>
805
+ *
806
+ * @public
807
+ */
808
+ export const RdrOut = 63;
809
+
810
+ /**
811
+ * Upstream BinAritOperator constant Rem. Its numeric value is preserved exactly.
812
+ *
813
+ * %
814
+ *
815
+ * @public
816
+ */
817
+ export const Rem = 89;
818
+
819
+ /**
820
+ * Upstream BinAritOperator constant RemAssgn. Its numeric value is preserved exactly.
821
+ *
822
+ * %=
823
+ *
824
+ * @public
825
+ */
826
+ export const RemAssgn = 53;
827
+
828
+ /**
829
+ * Upstream ParExpOperator constant RemLargePrefix. Its numeric value is preserved exactly.
830
+ *
831
+ * ##
832
+ *
833
+ * @public
834
+ */
835
+ export const RemLargePrefix = 92;
836
+
837
+ /**
838
+ * Upstream ParExpOperator constant RemLargeSuffix. Its numeric value is preserved exactly.
839
+ *
840
+ * %%
841
+ *
842
+ * @public
843
+ */
844
+ export const RemLargeSuffix = 90;
845
+
846
+ /**
847
+ * Upstream ParExpOperator constant RemSmallPrefix. Its numeric value is preserved exactly.
848
+ *
849
+ * #
850
+ *
851
+ * @public
852
+ */
853
+ export const RemSmallPrefix = 91;
854
+
855
+ /**
856
+ * Upstream ParExpOperator constant RemSmallSuffix. Its numeric value is preserved exactly.
857
+ *
858
+ * %
859
+ *
860
+ * @public
861
+ */
862
+ export const RemSmallSuffix = 89;
863
+
864
+ /**
865
+ * Upstream CaseOperator constant Resume. Its numeric value is preserved exactly.
866
+ *
867
+ * ;;&
868
+ *
869
+ * @public
870
+ */
871
+ export const Resume = 37;
872
+
873
+ /**
874
+ * Upstream CaseOperator constant ResumeKorn. Its numeric value is preserved exactly.
875
+ *
876
+ * ;|
877
+ *
878
+ * @public
879
+ */
880
+ export const ResumeKorn = 38;
881
+
882
+ /**
883
+ * Upstream BinAritOperator constant Shl. Its numeric value is preserved exactly.
884
+ *
885
+ * \<\<
886
+ *
887
+ * @public
888
+ */
889
+ export const Shl = 71;
890
+
891
+ /**
892
+ * Upstream BinAritOperator constant ShlAssgn. Its numeric value is preserved exactly.
893
+ *
894
+ * \<\<=
895
+ *
896
+ * @public
897
+ */
898
+ export const ShlAssgn = 57;
899
+
900
+ /**
901
+ * Upstream BinAritOperator constant Shr. Its numeric value is preserved exactly.
902
+ *
903
+ * \>\>
904
+ *
905
+ * @public
906
+ */
907
+ export const Shr = 64;
908
+
909
+ /**
910
+ * Upstream BinAritOperator constant ShrAssgn. Its numeric value is preserved exactly.
911
+ *
912
+ * \>\>=
913
+ *
914
+ * @public
915
+ */
916
+ export const ShrAssgn = 58;
917
+
918
+ /**
919
+ * Upstream BinAritOperator constant Sub. Its numeric value is preserved exactly.
920
+ *
921
+ * -
922
+ *
923
+ * @public
924
+ */
925
+ export const Sub = 83;
926
+
927
+ /**
928
+ * Upstream BinAritOperator constant SubAssgn. Its numeric value is preserved exactly.
929
+ *
930
+ * -=
931
+ *
932
+ * @public
933
+ */
934
+ export const SubAssgn = 50;
935
+
936
+ /**
937
+ * Upstream BinAritOperator constant TernColon. Its numeric value is preserved exactly.
938
+ *
939
+ * :
940
+ *
941
+ * @public
942
+ */
943
+ export const TernColon = 104;
944
+
945
+ /**
946
+ * Upstream BinAritOperator constant TernQuest. Its numeric value is preserved exactly.
947
+ *
948
+ * ?
949
+ *
950
+ * @public
951
+ */
952
+ export const TernQuest = 85;
953
+
954
+ /**
955
+ * Upstream BinTestOperator constant TsAfter. Its numeric value is preserved exactly.
956
+ *
957
+ * \>
958
+ *
959
+ * @public
960
+ */
961
+ export const TsAfter = 63;
962
+
963
+ /**
964
+ * Upstream BinTestOperator constant TsBefore. Its numeric value is preserved exactly.
965
+ *
966
+ * \<
967
+ *
968
+ * @public
969
+ */
970
+ export const TsBefore = 65;
971
+
972
+ /**
973
+ * Upstream UnTestOperator constant TsBlckSp. Its numeric value is preserved exactly.
974
+ *
975
+ * -b
976
+ *
977
+ * @public
978
+ */
979
+ export const TsBlckSp = 109;
980
+
981
+ /**
982
+ * Upstream UnTestOperator constant TsCharSp. Its numeric value is preserved exactly.
983
+ *
984
+ * -c
985
+ *
986
+ * @public
987
+ */
988
+ export const TsCharSp = 108;
989
+
990
+ /**
991
+ * Upstream BinTestOperator constant TsDevIno. Its numeric value is preserved exactly.
992
+ *
993
+ * -ef
994
+ *
995
+ * @public
996
+ */
997
+ export const TsDevIno = 132;
998
+
999
+ /**
1000
+ * Upstream UnTestOperator constant TsDirect. Its numeric value is preserved exactly.
1001
+ *
1002
+ * -d
1003
+ *
1004
+ * @public
1005
+ */
1006
+ export const TsDirect = 107;
1007
+
1008
+ /**
1009
+ * Upstream UnTestOperator constant TsEmpStr. Its numeric value is preserved exactly.
1010
+ *
1011
+ * -z
1012
+ *
1013
+ * @public
1014
+ */
1015
+ export const TsEmpStr = 124;
1016
+
1017
+ /**
1018
+ * Upstream BinTestOperator constant TsEql. Its numeric value is preserved exactly.
1019
+ *
1020
+ * -eq
1021
+ *
1022
+ * @public
1023
+ */
1024
+ export const TsEql = 133;
1025
+
1026
+ /**
1027
+ * Upstream UnTestOperator constant TsExec. Its numeric value is preserved exactly.
1028
+ *
1029
+ * -x
1030
+ *
1031
+ * @public
1032
+ */
1033
+ export const TsExec = 121;
1034
+
1035
+ /**
1036
+ * Upstream UnTestOperator constant TsExists. Its numeric value is preserved exactly.
1037
+ *
1038
+ * -e
1039
+ *
1040
+ * @public
1041
+ */
1042
+ export const TsExists = 105;
1043
+
1044
+ /**
1045
+ * Upstream UnTestOperator constant TsFdTerm. Its numeric value is preserved exactly.
1046
+ *
1047
+ * -t
1048
+ *
1049
+ * @public
1050
+ */
1051
+ export const TsFdTerm = 123;
1052
+
1053
+ /**
1054
+ * Upstream UnTestOperator constant TsGIDSet. Its numeric value is preserved exactly.
1055
+ *
1056
+ * -g
1057
+ *
1058
+ * @public
1059
+ */
1060
+ export const TsGIDSet = 114;
1061
+
1062
+ /**
1063
+ * Upstream BinTestOperator constant TsGeq. Its numeric value is preserved exactly.
1064
+ *
1065
+ * -ge
1066
+ *
1067
+ * @public
1068
+ */
1069
+ export const TsGeq = 136;
1070
+
1071
+ /**
1072
+ * Upstream UnTestOperator constant TsGrpOwn. Its numeric value is preserved exactly.
1073
+ *
1074
+ * -G
1075
+ *
1076
+ * @public
1077
+ */
1078
+ export const TsGrpOwn = 116;
1079
+
1080
+ /**
1081
+ * Upstream BinTestOperator constant TsGtr. Its numeric value is preserved exactly.
1082
+ *
1083
+ * -gt
1084
+ *
1085
+ * @public
1086
+ */
1087
+ export const TsGtr = 138;
1088
+
1089
+ /**
1090
+ * Upstream BinTestOperator constant TsLeq. Its numeric value is preserved exactly.
1091
+ *
1092
+ * -le
1093
+ *
1094
+ * @public
1095
+ */
1096
+ export const TsLeq = 135;
1097
+
1098
+ /**
1099
+ * Upstream BinTestOperator constant TsLss. Its numeric value is preserved exactly.
1100
+ *
1101
+ * -lt
1102
+ *
1103
+ * @public
1104
+ */
1105
+ export const TsLss = 137;
1106
+
1107
+ /**
1108
+ * Upstream BinTestOperator constant TsMatch. Its numeric value is preserved exactly.
1109
+ *
1110
+ * ==
1111
+ *
1112
+ * @public
1113
+ */
1114
+ export const TsMatch = 45;
1115
+
1116
+ /**
1117
+ * Upstream BinTestOperator constant TsMatchShort. Its numeric value is preserved exactly.
1118
+ *
1119
+ * =
1120
+ *
1121
+ * @public
1122
+ */
1123
+ export const TsMatchShort = 87;
1124
+
1125
+ /**
1126
+ * Upstream UnTestOperator constant TsModif. Its numeric value is preserved exactly.
1127
+ *
1128
+ * -N
1129
+ *
1130
+ * @public
1131
+ */
1132
+ export const TsModif = 118;
1133
+
1134
+ /**
1135
+ * Upstream UnTestOperator constant TsNempStr. Its numeric value is preserved exactly.
1136
+ *
1137
+ * -n
1138
+ *
1139
+ * @public
1140
+ */
1141
+ export const TsNempStr = 125;
1142
+
1143
+ /**
1144
+ * Upstream BinTestOperator constant TsNeq. Its numeric value is preserved exactly.
1145
+ *
1146
+ * -ne
1147
+ *
1148
+ * @public
1149
+ */
1150
+ export const TsNeq = 134;
1151
+
1152
+ /**
1153
+ * Upstream BinTestOperator constant TsNewer. Its numeric value is preserved exactly.
1154
+ *
1155
+ * -nt
1156
+ *
1157
+ * @public
1158
+ */
1159
+ export const TsNewer = 130;
1160
+
1161
+ /**
1162
+ * Upstream UnTestOperator constant TsNmPipe. Its numeric value is preserved exactly.
1163
+ *
1164
+ * -p
1165
+ *
1166
+ * @public
1167
+ */
1168
+ export const TsNmPipe = 110;
1169
+
1170
+ /**
1171
+ * Upstream UnTestOperator constant TsNoEmpty. Its numeric value is preserved exactly.
1172
+ *
1173
+ * -s
1174
+ *
1175
+ * @public
1176
+ */
1177
+ export const TsNoEmpty = 122;
1178
+
1179
+ /**
1180
+ * Upstream BinTestOperator constant TsNoMatch. Its numeric value is preserved exactly.
1181
+ *
1182
+ * !=
1183
+ *
1184
+ * @public
1185
+ */
1186
+ export const TsNoMatch = 46;
1187
+
1188
+ /**
1189
+ * Upstream UnTestOperator constant TsNot. Its numeric value is preserved exactly.
1190
+ *
1191
+ * !
1192
+ *
1193
+ * @public
1194
+ */
1195
+ export const TsNot = 39;
1196
+
1197
+ /**
1198
+ * Upstream BinTestOperator constant TsOlder. Its numeric value is preserved exactly.
1199
+ *
1200
+ * -ot
1201
+ *
1202
+ * @public
1203
+ */
1204
+ export const TsOlder = 131;
1205
+
1206
+ /**
1207
+ * Upstream UnTestOperator constant TsOptSet. Its numeric value is preserved exactly.
1208
+ *
1209
+ * -o
1210
+ *
1211
+ * @public
1212
+ */
1213
+ export const TsOptSet = 126;
1214
+
1215
+ /**
1216
+ * Upstream UnTestOperator constant TsParen. Its numeric value is preserved exactly.
1217
+ *
1218
+ * (
1219
+ *
1220
+ * @public
1221
+ */
1222
+ export const TsParen = 27;
1223
+
1224
+ /**
1225
+ * Upstream BinTestOperator constant TsReMatch. Its numeric value is preserved exactly.
1226
+ *
1227
+ * =~
1228
+ *
1229
+ * @public
1230
+ */
1231
+ export const TsReMatch = 129;
1232
+
1233
+ /**
1234
+ * Upstream UnTestOperator constant TsRead. Its numeric value is preserved exactly.
1235
+ *
1236
+ * -r
1237
+ *
1238
+ * @public
1239
+ */
1240
+ export const TsRead = 119;
1241
+
1242
+ /**
1243
+ * Upstream UnTestOperator constant TsRefVar. Its numeric value is preserved exactly.
1244
+ *
1245
+ * -R
1246
+ *
1247
+ * @public
1248
+ */
1249
+ export const TsRefVar = 128;
1250
+
1251
+ /**
1252
+ * Upstream UnTestOperator constant TsRegFile. Its numeric value is preserved exactly.
1253
+ *
1254
+ * -f
1255
+ *
1256
+ * @public
1257
+ */
1258
+ export const TsRegFile = 106;
1259
+
1260
+ /**
1261
+ * Upstream UnTestOperator constant TsSmbLink. Its numeric value is preserved exactly.
1262
+ *
1263
+ * -L
1264
+ *
1265
+ * @public
1266
+ */
1267
+ export const TsSmbLink = 112;
1268
+
1269
+ /**
1270
+ * Upstream UnTestOperator constant TsSocket. Its numeric value is preserved exactly.
1271
+ *
1272
+ * -S
1273
+ *
1274
+ * @public
1275
+ */
1276
+ export const TsSocket = 111;
1277
+
1278
+ /**
1279
+ * Upstream UnTestOperator constant TsSticky. Its numeric value is preserved exactly.
1280
+ *
1281
+ * -k
1282
+ *
1283
+ * @public
1284
+ */
1285
+ export const TsSticky = 113;
1286
+
1287
+ /**
1288
+ * Upstream UnTestOperator constant TsUIDSet. Its numeric value is preserved exactly.
1289
+ *
1290
+ * -u
1291
+ *
1292
+ * @public
1293
+ */
1294
+ export const TsUIDSet = 115;
1295
+
1296
+ /**
1297
+ * Upstream UnTestOperator constant TsUsrOwn. Its numeric value is preserved exactly.
1298
+ *
1299
+ * -O
1300
+ *
1301
+ * @public
1302
+ */
1303
+ export const TsUsrOwn = 117;
1304
+
1305
+ /**
1306
+ * Upstream UnTestOperator constant TsVarSet. Its numeric value is preserved exactly.
1307
+ *
1308
+ * -v
1309
+ *
1310
+ * @public
1311
+ */
1312
+ export const TsVarSet = 127;
1313
+
1314
+ /**
1315
+ * Upstream UnTestOperator constant TsWrite. Its numeric value is preserved exactly.
1316
+ *
1317
+ * -w
1318
+ *
1319
+ * @public
1320
+ */
1321
+ export const TsWrite = 120;
1322
+
1323
+ /**
1324
+ * Upstream ParExpOperator constant UpperAll. Its numeric value is preserved exactly.
1325
+ *
1326
+ * ^^
1327
+ *
1328
+ * @public
1329
+ */
1330
+ export const UpperAll = 97;
1331
+
1332
+ /**
1333
+ * Upstream ParExpOperator constant UpperFirst. Its numeric value is preserved exactly.
1334
+ *
1335
+ * ^
1336
+ *
1337
+ * @public
1338
+ */
1339
+ export const UpperFirst = 96;
1340
+
1341
+ /**
1342
+ * Upstream RedirOperator constant WordHdoc. Its numeric value is preserved exactly.
1343
+ *
1344
+ * \<\<\<
1345
+ *
1346
+ * @public
1347
+ */
1348
+ export const WordHdoc = 73;
1349
+
1350
+ /**
1351
+ * Upstream BinAritOperator constant Xor. Its numeric value is preserved exactly.
1352
+ *
1353
+ * ^
1354
+ *
1355
+ * @public
1356
+ */
1357
+ export const Xor = 96;
1358
+
1359
+ /**
1360
+ * Upstream BinAritOperator constant XorAssgn. Its numeric value is preserved exactly.
1361
+ *
1362
+ * ^=
1363
+ *
1364
+ * @public
1365
+ */
1366
+ export const XorAssgn = 56;
1367
+
1368
+ /**
1369
+ * Upstream BinAritOperator constant XorBool. Its numeric value is preserved exactly.
1370
+ *
1371
+ * ^^
1372
+ *
1373
+ * @public
1374
+ */
1375
+ export const XorBool = 97;
1376
+
1377
+ /**
1378
+ * Upstream BinAritOperator constant XorBoolAssgn. Its numeric value is preserved exactly.
1379
+ *
1380
+ * ^^=
1381
+ *
1382
+ * @public
1383
+ */
1384
+ export const XorBoolAssgn = 61;