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

Side by Side Diff: Include/Python-ast.h

Issue 11682: PEP 380 reference implementation for 3.3
Patch Set: Created 7 years, 6 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:
View unified diff | Download patch
OLDNEW
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 expr_ty value; 238 expr_ty value;
239 asdl_seq *generators; 239 asdl_seq *generators;
240 } DictComp; 240 } DictComp;
241 241
242 struct { 242 struct {
243 expr_ty elt; 243 expr_ty elt;
244 asdl_seq *generators; 244 asdl_seq *generators;
245 } GeneratorExp; 245 } GeneratorExp;
246 246
247 struct { 247 struct {
248 int is_from;
248 expr_ty value; 249 expr_ty value;
249 } Yield; 250 } Yield;
250 251
251 struct { 252 struct {
252 expr_ty left; 253 expr_ty left;
253 asdl_int_seq *ops; 254 asdl_int_seq *ops;
254 asdl_seq *comparators; 255 asdl_seq *comparators;
255 } Compare; 256 } Compare;
256 257
257 struct { 258 struct {
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 col_offset, PyArena *arena); 481 col_offset, PyArena *arena);
481 #define SetComp(a0, a1, a2, a3, a4) _Py_SetComp(a0, a1, a2, a3, a4) 482 #define SetComp(a0, a1, a2, a3, a4) _Py_SetComp(a0, a1, a2, a3, a4)
482 expr_ty _Py_SetComp(expr_ty elt, asdl_seq * generators, int lineno, int 483 expr_ty _Py_SetComp(expr_ty elt, asdl_seq * generators, int lineno, int
483 col_offset, PyArena *arena); 484 col_offset, PyArena *arena);
484 #define DictComp(a0, a1, a2, a3, a4, a5) _Py_DictComp(a0, a1, a2, a3, a4, a5) 485 #define DictComp(a0, a1, a2, a3, a4, a5) _Py_DictComp(a0, a1, a2, a3, a4, a5)
485 expr_ty _Py_DictComp(expr_ty key, expr_ty value, asdl_seq * generators, int 486 expr_ty _Py_DictComp(expr_ty key, expr_ty value, asdl_seq * generators, int
486 lineno, int col_offset, PyArena *arena); 487 lineno, int col_offset, PyArena *arena);
487 #define GeneratorExp(a0, a1, a2, a3, a4) _Py_GeneratorExp(a0, a1, a2, a3, a4) 488 #define GeneratorExp(a0, a1, a2, a3, a4) _Py_GeneratorExp(a0, a1, a2, a3, a4)
488 expr_ty _Py_GeneratorExp(expr_ty elt, asdl_seq * generators, int lineno, int 489 expr_ty _Py_GeneratorExp(expr_ty elt, asdl_seq * generators, int lineno, int
489 col_offset, PyArena *arena); 490 col_offset, PyArena *arena);
490 #define Yield(a0, a1, a2, a3) _Py_Yield(a0, a1, a2, a3) 491 #define Yield(a0, a1, a2, a3, a4) _Py_Yield(a0, a1, a2, a3, a4)
491 expr_ty _Py_Yield(expr_ty value, int lineno, int col_offset, PyArena *arena); 492 expr_ty _Py_Yield(int is_from, expr_ty value, int lineno, int col_offset,
493 PyArena *arena);
492 #define Compare(a0, a1, a2, a3, a4, a5) _Py_Compare(a0, a1, a2, a3, a4, a5) 494 #define Compare(a0, a1, a2, a3, a4, a5) _Py_Compare(a0, a1, a2, a3, a4, a5)
493 expr_ty _Py_Compare(expr_ty left, asdl_int_seq * ops, asdl_seq * comparators, 495 expr_ty _Py_Compare(expr_ty left, asdl_int_seq * ops, asdl_seq * comparators,
494 int lineno, int col_offset, PyArena *arena); 496 int lineno, int col_offset, PyArena *arena);
495 #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)
496 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
497 starargs, expr_ty kwargs, int lineno, int col_offset, PyArena 499 starargs, expr_ty kwargs, int lineno, int col_offset, PyArena
498 *arena); 500 *arena);
499 #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)
500 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);
501 #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)
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 keyword_ty _Py_keyword(identifier arg, expr_ty value, PyArena *arena); 548 keyword_ty _Py_keyword(identifier arg, expr_ty value, PyArena *arena);
547 #define alias(a0, a1, a2) _Py_alias(a0, a1, a2) 549 #define alias(a0, a1, a2) _Py_alias(a0, a1, a2)
548 alias_ty _Py_alias(identifier name, identifier asname, PyArena *arena); 550 alias_ty _Py_alias(identifier name, identifier asname, PyArena *arena);
549 #define withitem(a0, a1, a2) _Py_withitem(a0, a1, a2) 551 #define withitem(a0, a1, a2) _Py_withitem(a0, a1, a2)
550 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
551 *arena); 553 *arena);
552 554
553 PyObject* PyAST_mod2obj(mod_ty t); 555 PyObject* PyAST_mod2obj(mod_ty t);
554 mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode); 556 mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode);
555 int PyAST_Check(PyObject* obj); 557 int PyAST_Check(PyObject* obj);
OLDNEW
« no previous file with comments | « Include/pyerrors.h ('k') | Lib/opcode.py » ('j') | Modules/parsermodule.c » ('J')

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