Commit 32c5caea authored by Igor Dejanovic's avatar Igor Dejanovic

Removing print and disabling debuging in PEG parser construction

parent 89a5a196
......@@ -74,7 +74,6 @@ class PEGSemanticAction(SemanticAction):
class SemGrammar(SemanticAction):
def first_pass(self, parser, node, children):
print(parser.peg_rules)
return parser.peg_rules[parser.root_rule_name]
......@@ -208,7 +207,7 @@ class ParserPEG(Parser):
return self.parser_model.parse(self)
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.parse(language_def)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment