Lines Matching refs:token
27 token = lexer.nextToken()
28 assert token.type == self.lexerModule.FOO
29 assert token.start == 0, token.start
30 assert token.stop == 1, token.stop
31 assert token.text == 'fo', token.text
33 token = lexer.nextToken()
34 assert token.type == self.lexerModule.FOO
35 assert token.start == 2, token.start
36 assert token.stop == 12, token.stop
37 assert token.text == 'fababbooabb', token.text
39 token = lexer.nextToken()
40 assert token.type == self.lexerModule.EOF
48 token = lexer.nextToken()
49 raise AssertionError, token