pyebnf/parser_base.py
def parse(self, text):
    """Attempt to parse source code."""
    self.original_text = text

    try:
      return getattr(self, self.entry_point)(text)
    except (DeadEnd) as exc:
      raise ParserError(self.most_consumed, "Failed to parse input") from exc
    return tree
def parse(self, text):
    """Attempt to parse source code."""
    self.original_text = text

    try:
      return getattr(self, self.entry_point)(text)
    except (DeadEnd) as exc:
      raise ParserError(self.most_consumed, "Failed to parse input") from exc
    return tree
def parse ( self , text ) : self . original_text = text try : return getattr ( self , self . entry_point ) ( text ) except ( DeadEnd ) as exc : raise ParserError ( self . most_consumed , "Failed to parse input" ) from exc return tree
Attempt to parse source code.
Attempt to parse source code .