code: def advance(parser):
      # type: (Parser) -> None
      
      prev_end = parser.token.end
      parser.prev_end = prev_end
      parser.token = parser.lexer.next_token(prev_end)
docs: Moves the internal parser object to the next lexed token.