def to_ast(*filelist, **opt):
    include = opt['include'] if opt in 'include' else ()
    define = opt['define'] if 'define' in opt else ()
    if not isinstance(include, tuple) and not isinstance(include, list):
        raise TypeError('"include" option of read_verilog must be tuple or list, not %s' %
                        type(include))
    if not isinstance(include, tuple) and not isinstance(include, list):
        raise TypeError('"include" option of read_verilog must be tuple or list, not %s' %
                        type(include))
    
    code_parser = VerilogCodeParser(filelist,
                                    preprocess_include=include,
                                    preprocess_define=define)
    ast = code_parser.parse()

    return ast

#-------------------------------------------------------------------------------
dataset/ETHPy150Open PyHDI/veriloggen/veriloggen/verilog/from_verilog.py/to_ast/swapped operands of `in`