def gen_reg (class_names):
    """ Generates registration calls for funtions with the given class names.
    Args:
        class_names (list of str): The class names.
    Returns:
        str: The registration calls.
    """
    out = ""
    for class_name in class_names:
        if len(out) > 0:
            out += '\n            '
        #out += f'evaluator.addFunction(new {class_name}());'
        out += f'new {class_name}(),'
    out = out.rstrip(',')
    return out