Get the latest tech news
Show HN: COBOL-REKT, a toolkit for analysing and reverse-engineering COBOL
An evolving toolkit of capabilities helpful for reverse engineering legacy Cobol code - avishek-sen-gupta/cobol-rekt
This is suitable for use in further static analysis, transformation (into a control flow tree, for example), and inputs to other systems (informed chunking to an LLM, into a graph database for further exploration, etc.). The JGraphTBuilder class converts the unified model (AST, CFG, Data Structures) into a DirectedPseudograph (because there can be both loops and parallel edges between two nodes), for consequent analysis through the JGraphT API. There are 4 superfluous directories at the top (engine, parser, dialect-daco, dialect-idms), which are a hack to get the Che4z Checkstyle targets to run because of a path configuration issue.
Or read this on Hacker News