• Home
  • Raw
  • Download

Lines Matching refs:Token

24 from blueprint import Lexer, LexerError, Token
351 self.assertEqual(token, Token.LPAREN)
356 self.assertEqual(token, Token.RPAREN)
361 self.assertEqual(token, Token.LBRACKET)
366 self.assertEqual(token, Token.RBRACKET)
371 self.assertEqual(token, Token.LBRACE)
376 self.assertEqual(token, Token.RBRACE)
381 self.assertEqual(token, Token.COLON)
386 self.assertEqual(token, Token.ASSIGN)
391 self.assertEqual(token, Token.PLUS)
396 self.assertEqual(token, Token.COMMA)
405 self.assertEqual(token, Token.ASSIGNPLUS)
414 self.assertEqual(token, Token.SPACE)
419 self.assertEqual(token, Token.SPACE)
424 self.assertEqual(token, Token.SPACE)
429 self.assertEqual(token, Token.SPACE)
434 self.assertEqual(token, Token.SPACE)
443 self.assertEqual(token, Token.COMMENT)
448 self.assertEqual(token, Token.COMMENT)
453 self.assertEqual(token, Token.COMMENT)
458 self.assertEqual(token, Token.COMMENT)
463 self.assertEqual(token, Token.COMMENT)
468 self.assertEqual(token, Token.COMMENT)
473 self.assertEqual(token, Token.COMMENT)
478 self.assertEqual(token, Token.COMMENT)
483 self.assertEqual(token, Token.COMMENT)
488 self.assertEqual(token, Token.COMMENT)
493 self.assertEqual(token, Token.COMMENT)
498 self.assertEqual(token, Token.COMMENT)
507 self.assertEqual(token, Token.STRING)
512 self.assertEqual(token, Token.STRING)
521 self.assertEqual(token, Token.IDENT)
530 self.assertEqual(token, Token.IDENT)
535 self.assertEqual(token, Token.SPACE)
540 self.assertEqual(token, Token.STRING)
559 self.assertEqual(lexer.token, Token.IDENT)
561 lexer.consume(Token.IDENT)
565 self.assertEqual(lexer.token, Token.IDENT)
567 lexer.consume(Token.IDENT)
571 self.assertEqual(lexer.token, Token.STRING)
573 lexer.consume(Token.STRING)
577 self.assertEqual(lexer.token, Token.EOF)
588 self.assertEqual(lexer.token, Token.IDENT)
590 lexer.consume(Token.IDENT)
594 self.assertEqual(lexer.token, Token.EOF)
596 lexer.consume(Token.EOF)