1 | // _gen/frontend/types.asdl.h is generated by asdl_main.py
|
2 |
|
3 | #ifndef TYPES_ASDL
|
4 | #define TYPES_ASDL
|
5 |
|
6 | #include <cstdint>
|
7 |
|
8 | #include "mycpp/runtime.h"
|
9 | namespace types_asdl {
|
10 |
|
11 | // use struct instead of namespace so 'using' works consistently
|
12 | #define ASDL_NAMES struct
|
13 |
|
14 |
|
15 | enum class bool_arg_type_e {
|
16 | Undefined = 1,
|
17 | Path = 2,
|
18 | Int = 3,
|
19 | Str = 4,
|
20 | Other = 5,
|
21 | };
|
22 | typedef bool_arg_type_e bool_arg_type_t;
|
23 |
|
24 | enum class redir_arg_type_e {
|
25 | Path = 1,
|
26 | Desc = 2,
|
27 | Here = 3,
|
28 | };
|
29 | typedef redir_arg_type_e redir_arg_type_t;
|
30 |
|
31 | ASDL_NAMES opt_group_i {
|
32 | enum no_name {
|
33 | StrictAll = 1,
|
34 | YshUpgrade = 2,
|
35 | YshAll = 3,
|
36 | ARRAY_SIZE = 4,
|
37 | };
|
38 | };
|
39 |
|
40 | typedef int opt_group_t;
|
41 |
|
42 | enum class lex_mode_e {
|
43 | Undefined = 1,
|
44 | Comment = 2,
|
45 | ShCommand = 3,
|
46 | ShCommandFakeBrack = 4,
|
47 | Backtick = 5,
|
48 | DBracket = 6,
|
49 | SQ_Raw = 7,
|
50 | DQ = 8,
|
51 | SQ_C = 9,
|
52 | J8_Str = 10,
|
53 | Arith = 11,
|
54 | ExtGlob = 12,
|
55 | VSub_1 = 13,
|
56 | VSub_2 = 14,
|
57 | VSub_ArgUnquoted = 15,
|
58 | VSub_ArgDQ = 16,
|
59 | VSub_Zsh = 17,
|
60 | BashRegex = 18,
|
61 | BashRegexFakeInner = 19,
|
62 | FuncParens = 20,
|
63 | PrintfOuter = 21,
|
64 | PrintfPercent = 22,
|
65 | Expr = 23,
|
66 | };
|
67 | typedef lex_mode_e lex_mode_t;
|
68 |
|
69 | enum class word_mode_e {
|
70 | ShCommand = 1,
|
71 | ShCommandBrack = 2,
|
72 | DBracket = 3,
|
73 | BashRegex = 4,
|
74 | };
|
75 | typedef word_mode_e word_mode_t;
|
76 |
|
77 | enum class cmd_mode_e {
|
78 | Shell = 1,
|
79 | Func = 2,
|
80 | Proc = 3,
|
81 | };
|
82 | typedef cmd_mode_e cmd_mode_t;
|
83 |
|
84 |
|
85 | } // namespace types_asdl
|
86 |
|
87 | #endif // TYPES_ASDL
|