mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
import compile function form pycodegen
This commit is contained in:
parent
7fab23e9cb
commit
f728f9a13e
2 changed files with 8 additions and 0 deletions
|
|
@ -13,8 +13,12 @@ parseFile(path) -> AST
|
||||||
walk(ast, visitor, verbose=None)
|
walk(ast, visitor, verbose=None)
|
||||||
Does a pre-order walk over the ast using the visitor instance.
|
Does a pre-order walk over the ast using the visitor instance.
|
||||||
See compiler.visitor for details.
|
See compiler.visitor for details.
|
||||||
|
|
||||||
|
compile(filename)
|
||||||
|
Generates a .pyc file by compilining filename.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from transformer import parse, parseFile
|
from transformer import parse, parseFile
|
||||||
from visitor import walk
|
from visitor import walk
|
||||||
|
from pycodegen import compile
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,12 @@ parseFile(path) -> AST
|
||||||
walk(ast, visitor, verbose=None)
|
walk(ast, visitor, verbose=None)
|
||||||
Does a pre-order walk over the ast using the visitor instance.
|
Does a pre-order walk over the ast using the visitor instance.
|
||||||
See compiler.visitor for details.
|
See compiler.visitor for details.
|
||||||
|
|
||||||
|
compile(filename)
|
||||||
|
Generates a .pyc file by compilining filename.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from transformer import parse, parseFile
|
from transformer import parse, parseFile
|
||||||
from visitor import walk
|
from visitor import walk
|
||||||
|
from pycodegen import compile
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue