Lines Matching refs:lexer
13 lexer = self.getLexer(stream)
16 token = lexer.nextToken()
20 assert len(lexer.properties) == 3, lexer.properties
22 text, type, line, pos, index, channel, start, stop = lexer.properties[0]
23 assert text == 'foobar', lexer.properties[0]
24 assert type == self.lexerModule.IDENTIFIER, lexer.properties[0]
25 assert line == 1, lexer.properties[0]
26 assert pos == 0, lexer.properties[0]
27 assert index == -1, lexer.properties[0]
28 assert channel == antlr3.DEFAULT_CHANNEL, lexer.properties[0]
29 assert start == 0, lexer.properties[0]
30 assert stop == 5, lexer.properties[0]
32 text, type, line, pos, index, channel, start, stop = lexer.properties[1]
33 assert text == '_Ab98', lexer.properties[1]
34 assert type == self.lexerModule.IDENTIFIER, lexer.properties[1]
35 assert line == 1, lexer.properties[1]
36 assert pos == 7, lexer.properties[1]
37 assert index == -1, lexer.properties[1]
38 assert channel == antlr3.DEFAULT_CHANNEL, lexer.properties[1]
39 assert start == 7, lexer.properties[1]
40 assert stop == 11, lexer.properties[1]
42 text, type, line, pos, index, channel, start, stop = lexer.properties[2]
43 assert text == 'A12sdf', lexer.properties[2]
44 assert type == self.lexerModule.IDENTIFIER, lexer.properties[2]
45 assert line == 2, lexer.properties[2]
46 assert pos == 1, lexer.properties[2]
47 assert index == -1, lexer.properties[2]
48 assert channel == antlr3.DEFAULT_CHANNEL, lexer.properties[2]
49 assert start == 15, lexer.properties[2]
50 assert stop == 20, lexer.properties[2]