Move InvalidToken Exception in get_token_kind