Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(148293)

Delta Between Two Patch Sets: Include/Python-ast.h

Issue 11682: PEP 380 reference implementation for 3.3
Left Patch Set: Created 8 years, 5 months ago
Right Patch Set: Created 7 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Include/pyerrors.h ('k') | Lib/opcode.py » ('j') | Modules/parsermodule.c » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* File automatically generated by Parser/asdl_c.py. */ 1 /* File automatically generated by Parser/asdl_c.py. */
2 2
3 #include "asdl.h" 3 #include "asdl.h"
4 4
5 typedef struct _mod *mod_ty; 5 typedef struct _mod *mod_ty;
6 6
7 typedef struct _stmt *stmt_ty; 7 typedef struct _stmt *stmt_ty;
8 8
9 typedef struct _expr *expr_ty; 9 typedef struct _expr *expr_ty;
10 10
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 struct { 266 struct {
267 object n; 267 object n;
268 } Num; 268 } Num;
269 269
270 struct { 270 struct {
271 string s; 271 string s;
272 } Str; 272 } Str;
273 273
274 struct { 274 struct {
275 string s; 275 bytes s;
276 } Bytes; 276 } Bytes;
277 277
278 struct { 278 struct {
279 expr_ty value; 279 expr_ty value;
280 identifier attr; 280 identifier attr;
281 expr_context_ty ctx; 281 expr_context_ty ctx;
282 } Attribute; 282 } Attribute;
283 283
284 struct { 284 struct {
285 expr_ty value; 285 expr_ty value;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 int lineno, int col_offset, PyArena *arena); 496 int lineno, int col_offset, PyArena *arena);
497 #define Call(a0, a1, a2, a3, a4, a5, a6, a7) _Py_Call(a0, a1, a2, a3, a4, a5, a6 , a7) 497 #define Call(a0, a1, a2, a3, a4, a5, a6, a7) _Py_Call(a0, a1, a2, a3, a4, a5, a6 , a7)
498 expr_ty _Py_Call(expr_ty func, asdl_seq * args, asdl_seq * keywords, expr_ty 498 expr_ty _Py_Call(expr_ty func, asdl_seq * args, asdl_seq * keywords, expr_ty
499 starargs, expr_ty kwargs, int lineno, int col_offset, PyArena 499 starargs, expr_ty kwargs, int lineno, int col_offset, PyArena
500 *arena); 500 *arena);
501 #define Num(a0, a1, a2, a3) _Py_Num(a0, a1, a2, a3) 501 #define Num(a0, a1, a2, a3) _Py_Num(a0, a1, a2, a3)
502 expr_ty _Py_Num(object n, int lineno, int col_offset, PyArena *arena); 502 expr_ty _Py_Num(object n, int lineno, int col_offset, PyArena *arena);
503 #define Str(a0, a1, a2, a3) _Py_Str(a0, a1, a2, a3) 503 #define Str(a0, a1, a2, a3) _Py_Str(a0, a1, a2, a3)
504 expr_ty _Py_Str(string s, int lineno, int col_offset, PyArena *arena); 504 expr_ty _Py_Str(string s, int lineno, int col_offset, PyArena *arena);
505 #define Bytes(a0, a1, a2, a3) _Py_Bytes(a0, a1, a2, a3) 505 #define Bytes(a0, a1, a2, a3) _Py_Bytes(a0, a1, a2, a3)
506 expr_ty _Py_Bytes(string s, int lineno, int col_offset, PyArena *arena); 506 expr_ty _Py_Bytes(bytes s, int lineno, int col_offset, PyArena *arena);
507 #define Ellipsis(a0, a1, a2) _Py_Ellipsis(a0, a1, a2) 507 #define Ellipsis(a0, a1, a2) _Py_Ellipsis(a0, a1, a2)
508 expr_ty _Py_Ellipsis(int lineno, int col_offset, PyArena *arena); 508 expr_ty _Py_Ellipsis(int lineno, int col_offset, PyArena *arena);
509 #define Attribute(a0, a1, a2, a3, a4, a5) _Py_Attribute(a0, a1, a2, a3, a4, a5) 509 #define Attribute(a0, a1, a2, a3, a4, a5) _Py_Attribute(a0, a1, a2, a3, a4, a5)
510 expr_ty _Py_Attribute(expr_ty value, identifier attr, expr_context_ty ctx, int 510 expr_ty _Py_Attribute(expr_ty value, identifier attr, expr_context_ty ctx, int
511 lineno, int col_offset, PyArena *arena); 511 lineno, int col_offset, PyArena *arena);
512 #define Subscript(a0, a1, a2, a3, a4, a5) _Py_Subscript(a0, a1, a2, a3, a4, a5) 512 #define Subscript(a0, a1, a2, a3, a4, a5) _Py_Subscript(a0, a1, a2, a3, a4, a5)
513 expr_ty _Py_Subscript(expr_ty value, slice_ty slice, expr_context_ty ctx, int 513 expr_ty _Py_Subscript(expr_ty value, slice_ty slice, expr_context_ty ctx, int
514 lineno, int col_offset, PyArena *arena); 514 lineno, int col_offset, PyArena *arena);
515 #define Starred(a0, a1, a2, a3, a4) _Py_Starred(a0, a1, a2, a3, a4) 515 #define Starred(a0, a1, a2, a3, a4) _Py_Starred(a0, a1, a2, a3, a4)
516 expr_ty _Py_Starred(expr_ty value, expr_context_ty ctx, int lineno, int 516 expr_ty _Py_Starred(expr_ty value, expr_context_ty ctx, int lineno, int
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 keyword_ty _Py_keyword(identifier arg, expr_ty value, PyArena *arena); 548 keyword_ty _Py_keyword(identifier arg, expr_ty value, PyArena *arena);
549 #define alias(a0, a1, a2) _Py_alias(a0, a1, a2) 549 #define alias(a0, a1, a2) _Py_alias(a0, a1, a2)
550 alias_ty _Py_alias(identifier name, identifier asname, PyArena *arena); 550 alias_ty _Py_alias(identifier name, identifier asname, PyArena *arena);
551 #define withitem(a0, a1, a2) _Py_withitem(a0, a1, a2) 551 #define withitem(a0, a1, a2) _Py_withitem(a0, a1, a2)
552 withitem_ty _Py_withitem(expr_ty context_expr, expr_ty optional_vars, PyArena 552 withitem_ty _Py_withitem(expr_ty context_expr, expr_ty optional_vars, PyArena
553 *arena); 553 *arena);
554 554
555 PyObject* PyAST_mod2obj(mod_ty t); 555 PyObject* PyAST_mod2obj(mod_ty t);
556 mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode); 556 mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode);
557 int PyAST_Check(PyObject* obj); 557 int PyAST_Check(PyObject* obj);
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+