Home
last modified time | relevance | path

Searched refs:LexerError (Results 1 – 2 of 2) sorted by relevance

/development/vndk/tools/sourcedr/sourcedr/blueprint/
Dblueprint.py117 class LexerError(ValueError): class
122 super(LexerError, self).__init__(message)
161 raise LexerError(self.buf, self.start,
210 raise LexerError(buf, offset, 'bad octal escape sequence')
214 raise LexerError(buf, offset, 'bad octal escape sequence')
216 raise LexerError(buf, offset, 'bad octal escape sequence')
226 raise LexerError(buf, offset, 'bad hex escape sequence')
230 raise LexerError(buf, offset, 'bad hex escape sequence')
260 raise LexerError(buf, pos,
267 raise LexerError(buf, pos, 'bad escape sequence')
[all …]
/development/vndk/tools/sourcedr/sourcedr/blueprint/tests/
Dtest_lexer.py24 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 …]