Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
arpeggio-gm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
backend
arpeggio-gm
Commits
32c5caea
Commit
32c5caea
authored
Jul 07, 2014
by
Igor Dejanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing print and disabling debuging in PEG parser construction
parent
89a5a196
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
peg.py
arpeggio/peg.py
+1
-2
No files found.
arpeggio/peg.py
View file @
32c5caea
...
@@ -74,7 +74,6 @@ class PEGSemanticAction(SemanticAction):
...
@@ -74,7 +74,6 @@ class PEGSemanticAction(SemanticAction):
class
SemGrammar
(
SemanticAction
):
class
SemGrammar
(
SemanticAction
):
def
first_pass
(
self
,
parser
,
node
,
children
):
def
first_pass
(
self
,
parser
,
node
,
children
):
print
(
parser
.
peg_rules
)
return
parser
.
peg_rules
[
parser
.
root_rule_name
]
return
parser
.
peg_rules
[
parser
.
root_rule_name
]
...
@@ -208,7 +207,7 @@ class ParserPEG(Parser):
...
@@ -208,7 +207,7 @@ class ParserPEG(Parser):
return
self
.
parser_model
.
parse
(
self
)
return
self
.
parser_model
.
parse
(
self
)
def
_from_peg
(
self
,
language_def
):
def
_from_peg
(
self
,
language_def
):
parser
=
ParserPython
(
grammar
,
comment
,
reduce_tree
=
False
,
debug
=
True
)
parser
=
ParserPython
(
grammar
,
comment
,
reduce_tree
=
False
)
parser
.
root_rule_name
=
self
.
root_rule_name
parser
.
root_rule_name
=
self
.
root_rule_name
parser
.
parse
(
language_def
)
parser
.
parse
(
language_def
)
...
...
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