INNER CODE UNIT · Python

processFiles

KATRIN-Experiment/Kassiopeia · Scripts/gen-bindings-docs.py:381

def processFiles(file_list):
    node_aliases = {}
    node_list = {}

    # first process header files
    for file_name in file_list:
        with open(file_name) as f:
            buffer = ' '.join(f.readlines())

            match = re.findall(REGEX_PATTERN_TYPEDEF, buffer)
            for m in match:
                type, prefix, target, alias, builder = m[1:]
                #print(f"{target} := {alias} ({type})")

                if prefix and prefix[:-2] not in STRIP_NAMESPACES:
                    target = prefix[:-2] + target

                if not target in node_list:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…