{"by":"armorer","descendants":49,"id":41254441,"kids":[41256530,41256000,41258190,41257937,41258008,41254619,41255280],"score":91,"text":"This is an evolving toolkit of capabilities helpful for analysing and reverse engineering legacy Cobol code. Currently, the following capabilities are available:<p>- Program &#x2F; Section-level flowchart generation based on AST (SVG or PNG)\n- Parse Tree generation (with export to JSON)\n- Control Flow Tree generation (with export to JSON)\n- Allows embedding code comments as comment nodes in the graph\n- The SMOJOL Interpreter (WIP)\n- Injecting AST and Control Flow into Neo4J\n- Injecting Cobol data layouts from Data Division into Neo4J (with dependencies like MOVE, COMPUTE, etc.) + export to JSON\n- Injecting execution traces from the SMOJOL interpreter into Neo4J\n- Integration with OpenAI GPT to summarise nodes using bottom-up node traversal (AST nodes or Data Structure nodes)\n- Exposes a unified model (AST, CFG, Data Structures with appropriate interconnections) which can be analysed through [JGraphT](<a href=\"https:&#x2F;&#x2F;jgrapht.org&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;jgrapht.org&#x2F;</a>), together with export to GraphML format and JSON.\n- Support for namespaces to allow unique addressing of (possibly same) graphs\n- ALPHA: Support for building Glossary of Variables from data structures using LLMs\n- ALPHA: Support for extracting Capability Graph from paragraphs of a program using LLMs\n- ALPHA: Injecting inter-program dependencies into Neo4J (with export to JSON)\n- ALPHA: Paragraph similarity map<p>Contributions &#x2F; use cases are welcome!","time":1723716276,"title":"Show HN: COBOL-REKT, a toolkit for analysing and reverse-engineering COBOL","type":"story","url":"https://github.com/avishek-sen-gupta/cobol-rekt"}