pyrser/parsing/base.py
def read_char(self, c: str) -> bool:
        """
        Consume the c head byte, increment current index and return True
        else return False. It use peekchar and it's the same as '' in BNF.
        """
        if self.read_eof():
            return False
        self._stream.save_context()
        if c == self._stream.peek_char:
            self._stream.incpos()
            return self._stream.validate_context()
        return self._stream.restore_context()
def read_char(self, c: str) -> bool:
        if self.read_eof():
            return False
        self._stream.save_context()
        if c == self._stream.peek_char:
            self._stream.incpos()
            return self._stream.validate_context()
        return self._stream.restore_context()
def read_char ( self , c : str ) -> bool : if self . read_eof ( ) : return False self . _stream . save_context ( ) if c == self . _stream . peek_char : self . _stream . incpos ( ) return self . _stream . validate_context ( ) return self . _stream . restore_context ( )
Consume the c head byte, increment current index and return True
        else return False. It use peekchar and it's the same as '' in BNF.
Consume the c head byte increment current index and return True else return False . It use peekchar and it s the same as in BNF .