Searched refs:raise_error (Results 1 – 2 of 2) sorted by relevance
293 def raise_error(self, reason=None): member in Lexer380 self.raise_error()391 self.raise_error()439 self.raise_error('unknown character sequence')454 self.raise_error('bad escape sequence')586 self._lexer.raise_error()608 self._lexer.raise_error()622 self._lexer.raise_error()707 self._lexer.raise_error('undeclared rule name')
227 def raise_error(start, reason): function237 raise_error(start, 'invalid continuation byte')243 raise_error(start, 'invalid start byte')248 raise_error(start, 'invalid continuation byte')254 raise_error(start, 'invalid continuation byte')259 raise_error(i, 'invalid start byte')289 raise_error(start, 'unexpected end')