def __parse(string):
    """Parses a given string into a float if it contains a dot, into
    integer otherwise.
    :param string: Given string to parse.
    :return: Integer or float representation of the given string. """
    if "." in string:
        return float(string)
    return int(string)