Commit 7bcf8f51 authored by Igor Dejanovic's avatar Igor Dejanovic

Removing check for nested rules. Forgot why I have put it there in the

first place.
parent 0722066c
......@@ -793,11 +793,11 @@ class ParserPython(Parser):
__rule_cache.get(rule).rule_name
return __rule_cache.get(rule)
expression_expression = expression()
if callable(expression_expression):
raise GrammarError(
"Rule element can't be just another rule in '%s'." %
rule)
#expression_expression = expression()
#if callable(expression_expression):
#raise GrammarError(
#"Rule element '%s' can't be just another rule in '%s'." %
#(expression_expression, rule))
# Semantic action for the rule
if hasattr(expression, "sem"):
......
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