Changeset 388 for python/vendor/current/Include/Python-ast.h
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Include/Python-ast.h
r2 r388 186 186 187 187 enum _expr_kind {BoolOp_kind=1, BinOp_kind=2, UnaryOp_kind=3, Lambda_kind=4, 188 IfExp_kind=5, Dict_kind=6, ListComp_kind=7,189 GeneratorExp_kind=8, Yield_kind=9, Compare_kind=10,190 Call_kind=11, Repr_kind=12, Num_kind=13, Str_kind=14,191 Attribute_kind=15, Subscript_kind=16, Name_kind=17,192 List_kind=18, Tuple_kind=19};188 IfExp_kind=5, Dict_kind=6, Set_kind=7, ListComp_kind=8, 189 SetComp_kind=9, DictComp_kind=10, GeneratorExp_kind=11, 190 Yield_kind=12, Compare_kind=13, Call_kind=14, Repr_kind=15, 191 Num_kind=16, Str_kind=17, Attribute_kind=18, 192 Subscript_kind=19, Name_kind=20, List_kind=21, Tuple_kind=22}; 193 193 struct _expr { 194 194 enum _expr_kind kind; … … 227 227 228 228 struct { 229 asdl_seq *elts; 230 } Set; 231 232 struct { 229 233 expr_ty elt; 230 234 asdl_seq *generators; 231 235 } ListComp; 236 237 struct { 238 expr_ty elt; 239 asdl_seq *generators; 240 } SetComp; 241 242 struct { 243 expr_ty key; 244 expr_ty value; 245 asdl_seq *generators; 246 } DictComp; 232 247 233 248 struct { … … 450 465 expr_ty _Py_Dict(asdl_seq * keys, asdl_seq * values, int lineno, int 451 466 col_offset, PyArena *arena); 467 #define Set(a0, a1, a2, a3) _Py_Set(a0, a1, a2, a3) 468 expr_ty _Py_Set(asdl_seq * elts, int lineno, int col_offset, PyArena *arena); 452 469 #define ListComp(a0, a1, a2, a3, a4) _Py_ListComp(a0, a1, a2, a3, a4) 453 470 expr_ty _Py_ListComp(expr_ty elt, asdl_seq * generators, int lineno, int 454 471 col_offset, PyArena *arena); 472 #define SetComp(a0, a1, a2, a3, a4) _Py_SetComp(a0, a1, a2, a3, a4) 473 expr_ty _Py_SetComp(expr_ty elt, asdl_seq * generators, int lineno, int 474 col_offset, PyArena *arena); 475 #define DictComp(a0, a1, a2, a3, a4, a5) _Py_DictComp(a0, a1, a2, a3, a4, a5) 476 expr_ty _Py_DictComp(expr_ty key, expr_ty value, asdl_seq * generators, int 477 lineno, int col_offset, PyArena *arena); 455 478 #define GeneratorExp(a0, a1, a2, a3, a4) _Py_GeneratorExp(a0, a1, a2, a3, a4) 456 479 expr_ty _Py_GeneratorExp(expr_ty elt, asdl_seq * generators, int lineno, int
Note:
See TracChangeset
for help on using the changeset viewer.