fn-cobol

How it works

Stage 1 builds trusted libcobpy Python via GnuCOBOL C. Stage 2 is a LangGraph StateGraph that removes libcobpy when behavior still matches.

→ →

gate: out.py I/O == cobc -x binary

COBOL Source
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO.
PROCEDURE DIVISION.
    DISPLAY "Hello".
    STOP RUN.

Why C?

cobc -C is the IR. We don’t re-implement COBOL.

transpile.py

C → Python + libcobpy.

Gate

Match reference binary bytes. Trusted checkpoint.