pyrser/parsing/base.py
def read_until_eof(self) -> bool:
        """Consume all the stream. Same as EOF in BNF."""
        if self.read_eof():
            return True
        # TODO: read ALL
        self._stream.save_context()
        while not self.read_eof():
            self._stream.incpos()
        return self._stream.validate_context()
def read_until_eof(self) -> bool:
        """Consume all the stream. Same as EOF in BNF."""
        if self.read_eof():
            return True
        # TODO: read ALL
        self._stream.save_context()
        while not self.read_eof():
            self._stream.incpos()
        return self._stream.validate_context()
def read_until_eof ( self ) -> bool : if self . read_eof ( ) : return True # TODO: read ALL self . _stream . save_context ( ) while not self . read_eof ( ) : self . _stream . incpos ( ) return self . _stream . validate_context ( )
Consume all the stream. Same as EOF in BNF.
Consume all the stream . Same as EOF in BNF .