Commit cfe87bfb authored by di68kap's avatar di68kap
Browse files

- ebnf.py: compiler template now calls fallback_compiler as default, rather...

- ebnf.py: compiler template now calls fallback_compiler as default, rather than directly returning node
parent fa071299
......@@ -486,10 +486,10 @@ class EBNFCompiler(Compiler):
method_name = Compiler.method_name(name)
if name == self.root_symbol:
compiler += [' def ' + method_name + '(self, node):',
' return node', '']
' return self.fallback_compiler(node)', '']
else:
compiler += [' # def ' + method_name + '(self, node):',
' # return node', '']
' # return self.fallback_compiler(node)', '']
compiler += [COMPILER_FACTORY.format(NAME=self.grammar_name)]
return '\n'.join(compiler)
......
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