You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very valuable to add support for COBOL source code to Graphify, enabling analysis and graph generation for legacy enterprise systems.
Motivation:
COBOL is still widely used in banking, insurance, and government systems. Many organizations are actively trying to understand and modernize large COBOL codebases, and Graphify could be a powerful tool for:
The proposal is well thought out and COBOL would be a genuinely useful addition given how many legacy modernization projects are out there.
One thing to check before starting: tree-sitter-cobol does not appear to be published on PyPI yet. All the other languages graphify supports use PyPI-published tree-sitter bindings so the PR would need to either find a published package or ship the grammar bindings. Worth confirming that exists and works before writing the extractor.
On your open questions:
Data divisions and record structures — skip them for now. The graph value is in understanding program flow and dependencies, not data layout. PROGRAM-ID, SECTIONs, PARAGRAPHs, CALL, PERFORM, and COPY already give you that. Record structures can always be added later.
Copybooks — treat them as imports. A COPY mybook is conceptually the same as an import in any other language. The copybook file becomes a node and the COPY statement becomes an imports_from edge pointing to it. That fits naturally into the existing graph model.
If you find a working PyPI package, happy to review a PR following the same pattern as the other language extractors in extract.py.
COBOL support is on our radar — the extractor design is solid (PROGRAM-ID, SECTIONs, PARAGRAPHs, CALL, PERFORM, COPY as imports). The blocker is tree-sitter-cobol not being available on PyPI — all graphify language bindings must be pip-installable. Will add it as soon as a published package exists.
Hi @safishamsi ,
we installed graphify locally and tried it out, it doesn't seem to support COBOL.
Did I misunderstand you earlier and you meant that only the app.graphify.com supports COBOL?
Thanks a lot!
Best regards
Activity
safishamsi commentedon Apr 7, 2026
The proposal is well thought out and COBOL would be a genuinely useful addition given how many legacy modernization projects are out there.
One thing to check before starting:
tree-sitter-coboldoes not appear to be published on PyPI yet. All the other languages graphify supports use PyPI-published tree-sitter bindings so the PR would need to either find a published package or ship the grammar bindings. Worth confirming that exists and works before writing the extractor.On your open questions:
Data divisions and record structures — skip them for now. The graph value is in understanding program flow and dependencies, not data layout. PROGRAM-ID, SECTIONs, PARAGRAPHs, CALL, PERFORM, and COPY already give you that. Record structures can always be added later.
Copybooks — treat them as imports. A
COPY mybookis conceptually the same as an import in any other language. The copybook file becomes a node and the COPY statement becomes animports_fromedge pointing to it. That fits naturally into the existing graph model.If you find a working PyPI package, happy to review a PR following the same pattern as the other language extractors in
extract.py.safishamsi commentedon Apr 8, 2026
COBOL support is on our radar — the extractor design is solid (PROGRAM-ID, SECTIONs, PARAGRAPHs, CALL, PERFORM, COPY as imports). The blocker is
tree-sitter-cobolnot being available on PyPI — all graphify language bindings must be pip-installable. Will add it as soon as a published package exists.paolovic commentedon Aug 18, 2026
Hi @safishamsi ,
we'd need this as well
You are talking about this one that needs to be added to pypi, right?
https://github.com/yutaro-sakamoto/tree-sitter-cobol
safishamsi commentedon Aug 18, 2026
Did add the support, can you confirm and let me know!
paolovic commentedon Aug 18, 2026
Ah, it's already added?
Great, thank you very much!
We'll try it out and let you know, thanks a lot @safishamsi !
safishamsi commentedon Aug 18, 2026
Yeah but our main platform app.graphify.com has everything
paolovic commentedon Aug 21, 2026
Hi @safishamsi ,
we installed
graphifylocally and tried it out, it doesn't seem to support COBOL.Did I misunderstand you earlier and you meant that only the app.graphify.com supports COBOL?
Thanks a lot!
Best regards
timohear-vector8 commentedon Aug 21, 2026
I can't see COBOL support in the current codebase, eg:
graphify/graphify/detect.py
Line 45 in b2cd362
I also tried the v0.9.48 release to be sure
donta-dalpoas commentedon Sep 3, 2026
Is this a feature we can expect in the near future? Thanks, Donta