code_parse
Parse COBOL source files into AST, normalized model, and summary, with optional variable tracing for dependency mapping.
Instructions
Parse a source file from raw/ into structured code knowledge (AST, normalized model, summary). Currently supports COBOL (.cbl, .cob, .cpy). Persists artifacts under raw/parsed/cobol/. Optionally traces all references to a variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to source file in raw/ (e.g. 'PAYROLL.cbl') | |
| trace_variable | No | Optional: variable name to trace (e.g. 'WS-TOTAL-SALARY') |