def eval_token(token):
    """Converts string token to int, float or str.

    """
    if token.isnumeric():
        return int(token)
    try:
        return float(token)
    except TypeError:
        return token