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

Delta Between Two Patch Sets: Python/compile.c

Issue 11682: PEP 380 reference implementation for 3.3
Left Patch Set: Created 7 years, 4 months ago
Right Patch Set: Created 7 years, 4 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
LEFTRIGHT
1 /* 1 /*
2 * This file compiles an abstract syntax tree (AST) into Python bytecode. 2 * This file compiles an abstract syntax tree (AST) into Python bytecode.
3 * 3 *
4 * The primary entry point is PyAST_Compile(), which returns a 4 * The primary entry point is PyAST_Compile(), which returns a
5 * PyCodeObject. The compiler makes several passes to build the code 5 * PyCodeObject. The compiler makes several passes to build the code
6 * object: 6 * object:
7 * 1. Checks for future statements. See future.c 7 * 1. Checks for future statements. See future.c
8 * 2. Builds a symbol table. See symtable.c. 8 * 2. Builds a symbol table. See symtable.c.
9 * 3. Generate code for basic blocks. See compiler_mod() in this file. 9 * 3. Generate code for basic blocks. See compiler_mod() in this file.
10 * 4. Assemble the basic blocks into final code. See assemble() in 10 * 4. Assemble the basic blocks into final code. See assemble() in
(...skipping 4206 matching lines...) Expand 10 before | Expand all | Expand 10 after
4217 4217
4218 #undef PyAST_Compile 4218 #undef PyAST_Compile
4219 PyAPI_FUNC(PyCodeObject *) 4219 PyAPI_FUNC(PyCodeObject *)
4220 PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags, 4220 PyAST_Compile(mod_ty mod, const char *filename, PyCompilerFlags *flags,
4221 PyArena *arena) 4221 PyArena *arena)
4222 { 4222 {
4223 return PyAST_CompileEx(mod, filename, flags, -1, arena); 4223 return PyAST_CompileEx(mod, filename, flags, -1, arena);
4224 } 4224 }
4225 4225
4226 4226
LEFTRIGHT

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