Mercurial > cpython-lru_cache-weakref
comparison Include/Python-ast.h @ 39678:f87a3e61853d
Remove the UNARY_CONVERT opcode (was used for backticks). Also bumped up the
import MAGIC number.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Fri, 25 Aug 2006 05:05:30 +0000 |
| parents | f731859e9b3b |
| children | d0b83c4630c0 |
comparison
equal
deleted
inserted
replaced
| 39677:78564e269d23 | 39678:f87a3e61853d |
|---|---|
| 184 }; | 184 }; |
| 185 | 185 |
| 186 enum _expr_kind {BoolOp_kind=1, BinOp_kind=2, UnaryOp_kind=3, Lambda_kind=4, | 186 enum _expr_kind {BoolOp_kind=1, BinOp_kind=2, UnaryOp_kind=3, Lambda_kind=4, |
| 187 IfExp_kind=5, Dict_kind=6, ListComp_kind=7, | 187 IfExp_kind=5, Dict_kind=6, ListComp_kind=7, |
| 188 GeneratorExp_kind=8, Yield_kind=9, Compare_kind=10, | 188 GeneratorExp_kind=8, Yield_kind=9, Compare_kind=10, |
| 189 Call_kind=11, Repr_kind=12, Num_kind=13, Str_kind=14, | 189 Call_kind=11, Num_kind=12, Str_kind=13, Attribute_kind=14, |
| 190 Attribute_kind=15, Subscript_kind=16, Name_kind=17, | 190 Subscript_kind=15, Name_kind=16, List_kind=17, Tuple_kind=18}; |
| 191 List_kind=18, Tuple_kind=19}; | |
| 192 struct _expr { | 191 struct _expr { |
| 193 enum _expr_kind kind; | 192 enum _expr_kind kind; |
| 194 union { | 193 union { |
| 195 struct { | 194 struct { |
| 196 boolop_ty op; | 195 boolop_ty op; |
| 249 asdl_seq *args; | 248 asdl_seq *args; |
| 250 asdl_seq *keywords; | 249 asdl_seq *keywords; |
| 251 expr_ty starargs; | 250 expr_ty starargs; |
| 252 expr_ty kwargs; | 251 expr_ty kwargs; |
| 253 } Call; | 252 } Call; |
| 254 | |
| 255 struct { | |
| 256 expr_ty value; | |
| 257 } Repr; | |
| 258 | 253 |
| 259 struct { | 254 struct { |
| 260 object n; | 255 object n; |
| 261 } Num; | 256 } Num; |
| 262 | 257 |
| 412 expr_ty Compare(expr_ty left, asdl_int_seq * ops, asdl_seq * comparators, int | 407 expr_ty Compare(expr_ty left, asdl_int_seq * ops, asdl_seq * comparators, int |
| 413 lineno, int col_offset, PyArena *arena); | 408 lineno, int col_offset, PyArena *arena); |
| 414 expr_ty Call(expr_ty func, asdl_seq * args, asdl_seq * keywords, expr_ty | 409 expr_ty Call(expr_ty func, asdl_seq * args, asdl_seq * keywords, expr_ty |
| 415 starargs, expr_ty kwargs, int lineno, int col_offset, PyArena | 410 starargs, expr_ty kwargs, int lineno, int col_offset, PyArena |
| 416 *arena); | 411 *arena); |
| 417 expr_ty Repr(expr_ty value, int lineno, int col_offset, PyArena *arena); | |
| 418 expr_ty Num(object n, int lineno, int col_offset, PyArena *arena); | 412 expr_ty Num(object n, int lineno, int col_offset, PyArena *arena); |
| 419 expr_ty Str(string s, int lineno, int col_offset, PyArena *arena); | 413 expr_ty Str(string s, int lineno, int col_offset, PyArena *arena); |
| 420 expr_ty Attribute(expr_ty value, identifier attr, expr_context_ty ctx, int | 414 expr_ty Attribute(expr_ty value, identifier attr, expr_context_ty ctx, int |
| 421 lineno, int col_offset, PyArena *arena); | 415 lineno, int col_offset, PyArena *arena); |
| 422 expr_ty Subscript(expr_ty value, slice_ty slice, expr_context_ty ctx, int | 416 expr_ty Subscript(expr_ty value, slice_ty slice, expr_context_ty ctx, int |
