Searched refs:LexerError (Results 1 – 2 of 2) sorted by relevance
/development/vndk/tools/sourcedr/blueprint/tests/ |
D | test_lexer.py | 24 from blueprint import Lexer, LexerError, Token 49 exc = LexerError('a %', 2, 'unexpected character') 55 exc = LexerError('a\nb\ncde %', 8, 'unexpected character') 65 raise LexerError('a', 0, 'error') 145 with self.assertRaises(LexerError) as ctx: 150 with self.assertRaises(LexerError) as ctx: 168 with self.assertRaises(LexerError) as ctx: 218 with self.assertRaises(LexerError) as ctx: 244 with self.assertRaises(LexerError) as ctx: 271 with self.assertRaises(LexerError) as ctx: [all …]
|
/development/vndk/tools/sourcedr/blueprint/ |
D | blueprint.py | 117 class LexerError(ValueError): class 122 super(LexerError, self).__init__(message) 162 raise LexerError(self.buf, self.start, 211 raise LexerError(buf, offset, 'bad octal escape sequence') 215 raise LexerError(buf, offset, 'bad octal escape sequence') 217 raise LexerError(buf, offset, 'bad octal escape sequence') 227 raise LexerError(buf, offset, 'bad hex escape sequence') 231 raise LexerError(buf, offset, 'bad hex escape sequence') 261 raise LexerError(buf, pos, 268 raise LexerError(buf, pos, 'bad escape sequence') [all …]
|