Lines Matching refs:Lexer

24 from blueprint import Lexer, LexerError, Token
75 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 0)
79 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 1)
83 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 2)
88 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 3)
92 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 4)
96 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 5)
100 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 6)
105 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 7)
109 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 8)
113 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 9)
118 line, column = Lexer.compute_line_column('ab\ncde\nfg\n', 10)
133 end, lit = Lexer.lex_string('`a`', 0)
137 end, lit = Lexer.lex_string('`a\nb`', 0)
141 end, lit = Lexer.lex_string('"a""b"', 3)
146 Lexer.lex_string('`a', 0)
151 Lexer.lex_string('"a\nb"', 0)
160 end, lit = Lexer.lex_string('"a"', 0)
164 end, lit = Lexer.lex_string('"n"', 0)
169 Lexer.lex_string('"\\', 0)
178 end, lit = Lexer.lex_string('"\\a"', 0)
182 end, lit = Lexer.lex_string('"\\b"', 0)
186 end, lit = Lexer.lex_string('"\\f"', 0)
190 end, lit = Lexer.lex_string('"\\n"', 0)
194 end, lit = Lexer.lex_string('"\\r"', 0)
198 end, lit = Lexer.lex_string('"\\t"', 0)
202 end, lit = Lexer.lex_string('"\\v"', 0)
206 end, lit = Lexer.lex_string('"\\\\"', 0)
210 end, lit = Lexer.lex_string('"\\\'"', 0)
214 end, lit = Lexer.lex_string('"\\\""', 0)
219 Lexer.lex_string('"\\?"', 0)
228 end, lit = Lexer.lex_string('"\\000"', 0)
232 end, lit = Lexer.lex_string('"\\377"', 0)
245 Lexer.lex_string(test, 0)
254 end, lit = Lexer.lex_string('"\\x00"', 0)
258 end, lit = Lexer.lex_string('"\\xff"', 0)
272 Lexer.lex_string(test, 0)
281 end, lit = Lexer.lex_string('"\\u0000"', 0)
285 end, lit = Lexer.lex_string('"\\uffff"', 0)
301 Lexer.lex_string(test, 0)
310 end, lit = Lexer.lex_string('"\\U00000000"', 0)
314 end, lit = Lexer.lex_string('"\\U0001ffff"', 0)
335 Lexer.lex_string(test, 0)
350 token, end, lit = Lexer.lex('(', 0)
355 token, end, lit = Lexer.lex(')', 0)
360 token, end, lit = Lexer.lex('[', 0)
365 token, end, lit = Lexer.lex(']', 0)
370 token, end, lit = Lexer.lex('{', 0)
375 token, end, lit = Lexer.lex('}', 0)
380 token, end, lit = Lexer.lex(':', 0)
385 token, end, lit = Lexer.lex('=', 0)
390 token, end, lit = Lexer.lex('+', 0)
395 token, end, lit = Lexer.lex(',', 0)
404 token, end, lit = Lexer.lex('+=', 0)
413 token, end, lit = Lexer.lex(' ', 0)
418 token, end, lit = Lexer.lex('\t', 0)
423 token, end, lit = Lexer.lex('\r', 0)
428 token, end, lit = Lexer.lex('\n', 0)
433 token, end, lit = Lexer.lex('\n \r\t\n', 0)
442 token, end, lit = Lexer.lex('// abcd', 0)
447 token, end, lit = Lexer.lex('// abcd\nnext', 0)
452 token, end, lit = Lexer.lex('/*a\nb*/', 0)
457 token, end, lit = Lexer.lex('/*a\n *b*/', 0)
462 token, end, lit = Lexer.lex('/*a**b*/', 0)
467 token, end, lit = Lexer.lex('/*a***b*/', 0)
472 token, end, lit = Lexer.lex('/**/', 0)
477 token, end, lit = Lexer.lex('/***/', 0)
482 token, end, lit = Lexer.lex('/**a*/', 0)
487 token, end, lit = Lexer.lex('/*a**/', 0)
492 token, end, lit = Lexer.lex('/***a*/', 0)
497 token, end, lit = Lexer.lex('/*a***/', 0)
506 token, end, lit = Lexer.lex('"a"', 0)
511 token, end, lit = Lexer.lex('`a\nb`', 0)
520 token, end, lit = Lexer.lex('ident', 0)
529 token, end, lit = Lexer.lex('a "b"', 0)
534 token, end, lit = Lexer.lex('a "b"', end)
539 token, end, lit = Lexer.lex('a "b"', end)
555 lexer = Lexer('a b //a\n "c"', 0)
584 lexer = Lexer('a b', 2)
601 lexer = Lexer('content', path='test_path')