OILS / _gen / frontend / syntax.asdl_debug.py View on Github | oilshell.org

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