Lines Matching refs:token
27 token = lexer.nextToken()
28 assert token.type == self.lexerModule.DIGIT
29 assert token.start == 0, token.start
30 assert token.stop == 0, token.stop
31 assert token.text == '0', token.text
33 token = lexer.nextToken()
34 assert token.type == self.lexerModule.DIGIT
35 assert token.start == 1, token.start
36 assert token.stop == 1, token.stop
37 assert token.text == '8', token.text
39 token = lexer.nextToken()
40 assert token.type == self.lexerModule.DIGIT
41 assert token.start == 2, token.start
42 assert token.stop == 2, token.stop
43 assert token.text == '5', token.text
45 token = lexer.nextToken()
46 assert token.type == self.lexerModule.EOF
55 token = lexer.nextToken()
56 raise AssertionError, token