pyrser/grammar.py
def parse(self, source: str=None, entry: str=None) -> parsing.Node:
        """Parse source using the grammar"""
        self.from_string = True
        if source is not None:
            self.parsed_stream(source)
        if entry is None:
            entry = self.entry
        if entry is None:
            raise ValueError("No entry rule name defined for {}".format(
                self.__class__.__name__))
        return self._do_parse(entry)
def parse(self, source: str=None, entry: str=None) -> parsing.Node:
        self.from_string = True
        if source is not None:
            self.parsed_stream(source)
        if entry is None:
            entry = self.entry
        if entry is None:
            raise ValueError("No entry rule name defined for {}".format(
                self.__class__.__name__))
        return self._do_parse(entry)
def parse ( self , source : str = None , entry : str = None ) -> parsing . Node : self . from_string = True if source is not None : self . parsed_stream ( source ) if entry is None : entry = self . entry if entry is None : raise ValueError ( "No entry rule name defined for {}" . format ( self . __class__ . __name__ ) ) return self . _do_parse ( entry )
Parse source using the grammar
Parse source using the grammar