pyebnf/compiler.py
def _ast_terminal_to_code(self, terminal, **kwargs):
    """Convert an AST terminal to python source code."""
    value = _replace(terminal.value)
    if self.use_terminal_shorthand:
      return [value]
    else:
      return ["terminal({})".format(value)]
def _ast_terminal_to_code(self, terminal, **kwargs):
    value = _replace(terminal.value)
    if self.use_terminal_shorthand:
      return [value]
    else:
      return ["terminal({})".format(value)]
def _ast_terminal_to_code ( self , terminal , * * kwargs ) : value = _replace ( terminal . value ) if self . use_terminal_shorthand : return [ value ] else : return [ "terminal({})" . format ( value ) ]
Convert an AST terminal to python source code.
Convert an AST terminal to python source code .