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 == 0, token.stop
31 assert token.text == 'f', token.text
33 token = lexer.nextToken()
34 assert token.type == self.lexerModule.FOO
35 assert token.start == 1, token.start
36 assert token.stop == 2, token.stop
37 assert token.text == 'fa', token.text
39 token = lexer.nextToken()
40 assert token.type == self.lexerModule.FOO
41 assert token.start == 3, token.start
42 assert token.stop == 3, token.stop
43 assert token.text == 'f', token.text
45 token = lexer.nextToken()
46 assert token.type == self.lexerModule.EOF
56 token = lexer.nextToken()
57 raise AssertionError, token