INNER CODE UNIT · Python

cpp_escape_raw

apistol78/traktor · scripts/generate-node-emitter-capture.py:141

def cpp_escape_raw(text):
    # Raw string with a unique delimiter; guard against the (unlikely) delimiter
    # appearing in the source.
    assert (")" + DELIM + '"') not in text, "raw-string delimiter collision"
    return text


def main():
    with open(SRC, encoding="utf-8") as f:
        lines = f.readlines()
    text = "".join(lines)

    funcs = extract_functions(lines)
    regs = extract_registrations(text)

    captured = {}
    summaries = {}
    for node_type, fn in sorted(regs.items()):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…