1 | cpp_namespace = 'syntax_asdl'
|
2 | tags_to_types = \
|
3 | {'arith_expr_t': {1: 'arith_expr__EmptyZero',
|
4 | 2: 'arith_expr__EmptyOne',
|
5 | 5: 'arith_expr__UnaryAssign',
|
6 | 6: 'arith_expr__BinaryAssign',
|
7 | 7: 'arith_expr__Unary',
|
8 | 8: 'arith_expr__Binary',
|
9 | 9: 'arith_expr__TernaryOp',
|
10 | 67: 'Token',
|
11 | 68: 'CompoundWord'},
|
12 | 'bool_expr_t': {1: 'bool_expr__WordTest',
|
13 | 2: 'bool_expr__Binary',
|
14 | 3: 'bool_expr__Unary',
|
15 | 4: 'bool_expr__LogicalNot',
|
16 | 5: 'bool_expr__LogicalAnd',
|
17 | 6: 'bool_expr__LogicalOr'},
|
18 | 'bracket_op_t': {1: 'bracket_op__WholeArray', 2: 'bracket_op__ArrayIndex'},
|
19 | 'case_arg_t': {1: 'case_arg__Word', 2: 'case_arg__YshExpr'},
|
20 | 'char_class_term_t': {98: 'PosixClass',
|
21 | 99: 'PerlClass',
|
22 | 100: 'CharCode',
|
23 | 101: 'CharRange'},
|
24 | 'class_literal_term_t': {6: 'class_literal_term__Splice',
|
25 | 71: 'SingleQuoted',
|
26 | 98: 'PosixClass',
|
27 | 99: 'PerlClass',
|
28 | 100: 'CharCode',
|
29 | 101: 'CharRange'},
|
30 | 'command_t': {1: 'command__NoOp',
|
31 | 2: 'command__Redirect',
|
32 | 3: 'command__Simple',
|
33 | 4: 'command__ExpandedAlias',
|
34 | 5: 'command__Sentence',
|
35 | 6: 'command__ShAssignment',
|
36 | 7: 'command__ControlFlow',
|
37 | 8: 'command__Pipeline',
|
38 | 9: 'command__AndOr',
|
39 | 10: 'command__DoGroup',
|
40 | 12: 'command__Subshell',
|
41 | 13: 'command__DParen',
|
42 | 14: 'command__DBracket',
|
43 | 15: 'command__ForEach',
|
44 | 16: 'command__ForExpr',
|
45 | 17: 'command__WhileUntil',
|
46 | 18: 'command__If',
|
47 | 19: 'command__Case',
|
48 | 20: 'command__ShFunction',
|
49 | 21: 'command__TimeBlock',
|
50 | 22: 'command__CommandList',
|
51 | 23: 'command__VarDecl',
|
52 | 24: 'command__BareDecl',
|
53 | 25: 'command__Mutation',
|
54 | 26: 'command__Expr',
|
55 | 29: 'command__Retval',
|
56 | 84: 'BraceGroup',
|
57 | 88: 'Proc',
|
58 | 89: 'Func'},
|
59 | 'condition_t': {1: 'condition__Shell', 2: 'condition__YshExpr'},
|
60 | 'debug_frame_t': {1: 'debug_frame__Main',
|
61 | 2: 'debug_frame__Source',
|
62 | 3: 'debug_frame__Call'},
|
63 | 'expr_t': {1: 'expr__Var',
|
64 | 2: 'expr__Const',
|
65 | 3: 'expr__Place',
|
66 | 11: 'expr__Literal',
|
67 | 12: 'expr__Lambda',
|
68 | 13: 'expr__Unary',
|
69 | 14: 'expr__Binary',
|
70 | 15: 'expr__Compare',
|
71 | 16: 'expr__FuncCall',
|
72 | 17: 'expr__IfExp',
|
73 | 18: 'expr__Tuple',
|
74 | 19: 'expr__List',
|
75 | 20: 'expr__Dict',
|
76 | 21: 'expr__Implicit',
|
77 | 22: 'expr__ListComp',
|
78 | 23: 'expr__DictComp',
|
79 | 24: 'expr__GeneratorExp',
|
80 | 25: 'expr__Range',
|
81 | 26: 'expr__Slice',
|
82 | 29: 'expr__Spread',
|
83 | 69: 'BracedVarSub',
|
84 | 70: 'DoubleQuoted',
|
85 | 71: 'SingleQuoted',
|
86 | 72: 'SimpleVarSub',
|
87 | 73: 'CommandSub',
|
88 | 74: 'ShArrayLiteral',
|
89 | 82: 'Eggex',
|
90 | 96: 'Subscript',
|
91 | 97: 'Attribute'},
|
92 | 'for_iter_t': {1: 'for_iter__Args',
|
93 | 2: 'for_iter__Words',
|
94 | 3: 'for_iter__YshExpr',
|
95 | 4: 'for_iter__Files'},
|
96 | 'glob_part_t': {1: 'glob_part__Literal',
|
97 | 2: 'glob_part__Operator',
|
98 | 3: 'glob_part__CharClass'},
|
99 | 'loc_t': {1: 'loc__Missing',
|
100 | 4: 'loc__WordPart',
|
101 | 5: 'loc__Word',
|
102 | 6: 'loc__Arith',
|
103 | 7: 'loc__Command',
|
104 | 8: 'loc__TokenTooLong',
|
105 | 67: 'Token',
|
106 | 68: 'CompoundWord'},
|
107 | 'parse_result_t': {1: 'parse_result__EmptyLine',
|
108 | 2: 'parse_result__Eof',
|
109 | 3: 'parse_result__Node'},
|
110 | 'pat_t': {1: 'pat__Else', 2: 'pat__Words', 3: 'pat__YshExprs', 82: 'Eggex'},
|
111 | 'place_op_t': {1: 'place_op__Subscript', 2: 'place_op__Attribute'},
|
112 | 'printf_part_t': {2: 'printf_part__Percent', 67: 'Token'},
|
113 | 'proc_sig_t': {1: 'proc_sig__Open', 2: 'proc_sig__Closed'},
|
114 | 're_repeat_t': {2: 're_repeat__Range', 67: 'Token'},
|
115 | 're_t': {1: 're__Primitive',
|
116 | 4: 're__CharClassLiteral',
|
117 | 5: 're__CharClass',
|
118 | 6: 're__Splice',
|
119 | 8: 're__Repeat',
|
120 | 9: 're__Seq',
|
121 | 10: 're__Alt',
|
122 | 11: 're__Group',
|
123 | 12: 're__Capture',
|
124 | 13: 're__Backtracking',
|
125 | 14: 're__LiteralChars',
|
126 | 71: 'SingleQuoted',
|
127 | 98: 'PosixClass',
|
128 | 99: 'PerlClass'},
|
129 | 'redir_loc_t': {1: 'redir_loc__Fd', 2: 'redir_loc__VarName'},
|
130 | 'redir_param_t': {2: 'redir_param__HereDoc', 68: 'CompoundWord'},
|
131 | 'rhs_word_t': {1: 'rhs_word__Empty', 68: 'CompoundWord'},
|
132 | 'sh_lhs_t': {1: 'sh_lhs__Name',
|
133 | 2: 'sh_lhs__IndexedName',
|
134 | 3: 'sh_lhs__UnparsedIndex'},
|
135 | 'source_t': {1: 'source__Interactive',
|
136 | 2: 'source__Headless',
|
137 | 3: 'source__Unused',
|
138 | 4: 'source__CFlag',
|
139 | 5: 'source__Stdin',
|
140 | 6: 'source__MainFile',
|
141 | 7: 'source__SourcedFile',
|
142 | 8: 'source__ArgvWord',
|
143 | 9: 'source__Variable',
|
144 | 10: 'source__VarRef',
|
145 | 11: 'source__Alias',
|
146 | 12: 'source__Reparsed',
|
147 | 13: 'source__Synthetic'},
|
148 | 'suffix_op_t': {2: 'suffix_op__Unary',
|
149 | 3: 'suffix_op__Static',
|
150 | 4: 'suffix_op__PatSub',
|
151 | 5: 'suffix_op__Slice',
|
152 | 67: 'Token'},
|
153 | 'word_part_t': {2: 'word_part__BashAssocLiteral',
|
154 | 4: 'word_part__EscapedLiteral',
|
155 | 9: 'word_part__ZshVarSub',
|
156 | 11: 'word_part__TildeSub',
|
157 | 12: 'word_part__ArithSub',
|
158 | 13: 'word_part__BracedTuple',
|
159 | 14: 'word_part__BracedRange',
|
160 | 15: 'word_part__ExtGlob',
|
161 | 16: 'word_part__BashRegexGroup',
|
162 | 17: 'word_part__Splice',
|
163 | 18: 'word_part__ExprSub',
|
164 | 67: 'Token',
|
165 | 69: 'BracedVarSub',
|
166 | 70: 'DoubleQuoted',
|
167 | 71: 'SingleQuoted',
|
168 | 72: 'SimpleVarSub',
|
169 | 73: 'CommandSub',
|
170 | 74: 'ShArrayLiteral'},
|
171 | 'word_t': {3: 'word__BracedTree',
|
172 | 4: 'word__String',
|
173 | 67: 'Token',
|
174 | 68: 'CompoundWord'},
|
175 | 'y_lhs_t': {67: 'Token', 96: 'Subscript', 97: 'Attribute'}}
|