Пример #1
0
def do_types_subprg():
    print()
    for k in pnodes.get_types():
        print(dedent("""
            def Get_{0}(node, field):
                return {1}.vhdl__nodes_meta__get_{2}(node, field)
            """).format(k, libname, k.lower())
        )
Пример #2
0
def do_class_types():
    print_enum("types", pnodes.get_types())
Пример #3
0
def do_types_subprg():
    print()
    for k in pnodes.get_types():
        print()
        print("Get_{0} = {1}.vhdl__nodes_meta__get_{2}".format(k, libname, k.lower()))