pyebnf/compiler.py
def _ast_special_handling_to_code(self, special_handling, **kwargs):
    """Convert an AST sepcial handling to python source code."""
    ident = special_handling.value.svalue
    if ident in PB_SPECIAL_HANDLING:
      return ["PB.{0}".format(ident)]
    else:
      return ["self.{0}".format(ident)]
def _ast_special_handling_to_code(self, special_handling, **kwargs):
    ident = special_handling.value.svalue
    if ident in PB_SPECIAL_HANDLING:
      return ["PB.{0}".format(ident)]
    else:
      return ["self.{0}".format(ident)]
def _ast_special_handling_to_code ( self , special_handling , * * kwargs ) : ident = special_handling . value . svalue if ident in PB_SPECIAL_HANDLING : return [ "PB.{0}" . format ( ident ) ] else : return [ "self.{0}" . format ( ident ) ]
Convert an AST sepcial handling to python source code.
Convert an AST sepcial handling to python source code .