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()) )
def do_class_types(): print_enum("types", pnodes.get_types())
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()))