Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
14063d43
Commit
14063d43
authored
Nov 26, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile Cython.Compiler.ParseTreeTransforms module
parent
fca588c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
3 deletions
+64
-3
Cython/Compiler/ParseTreeTransforms.pxd
Cython/Compiler/ParseTreeTransforms.pxd
+57
-0
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+6
-3
setup.py
setup.py
+1
-0
No files found.
Cython/Compiler/ParseTreeTransforms.pxd
0 → 100644
View file @
14063d43
from
Cython.Compiler.Visitor
cimport
(
CythonTransform
,
VisitorTransform
,
ScopeTrackingTransform
,
EnvTransform
)
#class NameNodeCollector(TreeVisitor):
# cdef list name_nodes
cdef
class
SkipDeclarations
:
# (object):
pass
cdef
class
NormalizeTree
(
CythonTransform
):
cdef
bint
is_in_statlist
cdef
bint
is_in_expr
cdef
class
PostParse
(
ScopeTrackingTransform
):
cdef
dict
specialattribute_handlers
cdef
size_t
lambda_counter
cdef
_visit_assignment_node
(
self
,
node
,
list
expr_list
)
#def eliminate_rhs_duplicates(list expr_list_list, list ref_node_sequence)
#def sort_common_subsequences(list items)
cdef
flatten_parallel_assignments
(
list
input
,
list
output
)
cdef
map_starred_assignment
(
list
lhs_targets
,
list
starred_assignments
,
list
lhs_args
,
list
rhs_args
)
#class PxdPostParse(CythonTransform, SkipDeclarations):
#class InterpretCompilerDirectives(CythonTransform, SkipDeclarations):
#class WithTransform(CythonTransform, SkipDeclarations):
#class DecoratorTransform(CythonTransform, SkipDeclarations):
#class AnalyseDeclarationsTransform(CythonTransform):
cdef
class
AnalyseExpressionsTransform
(
CythonTransform
):
pass
cdef
class
ExpandInplaceOperators
(
EnvTransform
):
pass
cdef
class
AlignFunctionDefinitions
(
CythonTransform
):
cdef
dict
directives
cdef
scope
cdef
class
MarkClosureVisitor
(
CythonTransform
):
cdef
bint
needs_closure
cdef
class
CreateClosureClasses
(
CythonTransform
):
cdef
list
path
cdef
bint
in_lambda
cdef
module_scope
cdef
class
GilCheck
(
VisitorTransform
):
cdef
list
env_stack
cdef
bint
nogil
cdef
class
TransformBuiltinMethods
(
EnvTransform
):
cdef
visit_cython_attribute
(
self
,
node
)
Cython/Compiler/ParseTreeTransforms.py
View file @
14063d43
...
@@ -1293,9 +1293,12 @@ class AlignFunctionDefinitions(CythonTransform):
...
@@ -1293,9 +1293,12 @@ class AlignFunctionDefinitions(CythonTransform):
class
MarkClosureVisitor
(
CythonTransform
):
class
MarkClosureVisitor
(
CythonTransform
):
needs_closure
=
False
def
visit_ModuleNode
(
self
,
node
):
self
.
needs_closure
=
False
self
.
visitchildren
(
node
)
return
node
def
visit_FuncDefNode
(
self
,
node
):
def
visit_FuncDefNode
(
self
,
node
):
self
.
needs_closure
=
False
self
.
needs_closure
=
False
self
.
visitchildren
(
node
)
self
.
visitchildren
(
node
)
...
...
setup.py
View file @
14063d43
...
@@ -91,6 +91,7 @@ def compile_cython_modules(profile=False):
...
@@ -91,6 +91,7 @@ def compile_cython_modules(profile=False):
"Cython.Compiler.Scanning"
,
"Cython.Compiler.Scanning"
,
"Cython.Compiler.Parsing"
,
"Cython.Compiler.Parsing"
,
"Cython.Compiler.Visitor"
,
"Cython.Compiler.Visitor"
,
"Cython.Compiler.ParseTreeTransforms"
,
"Cython.Runtime.refnanny"
]
"Cython.Runtime.refnanny"
]
extensions
=
[]
extensions
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment