Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Franck Pommereau
/
snakes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Franck Pommereau
2013-03-03 08:53:48 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9906d63d6868ec292bd8ef24513cad09cdc4cfa0
9906d63d
1 parent
6ae86779
doc converted
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
snakes/lang/asdl.py
snakes/lang/asdl.py
View file @
9906d63
...
...
@@ -17,7 +17,8 @@ class memoize(object):
return
call
def
__get__
(
self
,
obj
,
objtype
):
"""Support instance methods."""
"""Support instance methods.
"""
return
partial
(
self
.
__call__
,
obj
)
def
component_has_cycle
(
node
,
graph
,
proceeding
,
visited
):
...
...
@@ -237,7 +238,8 @@ class CodeGen (asdl.VisitorBase) :
return
"
\n
"
.
join
(
python
(
code
,
0
))
def
compile_asdl
(
infilename
,
outfilename
):
""" Helper function to compile asdl files. """
"""Helper function to compile asdl files.
"""
infile
=
open
(
infilename
,
'r'
)
outfile
=
open
(
outfilename
,
'w'
)
...
...
Please
register
or
login
to post a comment