Plan for on-demand type resolution: - Single-file output with dependencies appended - Parse included headers only for missing types - Three-phase algorithm: parse, detect, resolve - Five components with clear interfaces and tests Key features: - Type reference scanner (finds all type usage) - Defined type collector (tracks what exists) - Include header parser (extracts #include directives) - Selective type extractor (finds specific types) - Main integration (wires everything together) Advantages: - Simple: one output file, no modules - Fast: parse dependencies once, extract many types - Minimal: only extract required types - Robust: Zig handles duplicate definitions - Testable: each component independently tested Ready to implement with: - Detailed code examples for each component - Complete test strategy - Success metrics - 5-day rollout plan - Risk mitigation |
||
|---|---|---|
| .. | ||
| docs | ||
| src | ||
| test | ||
| AGENTS.md | ||
| CRITICAL_ISSUE.md | ||
| DEPENDENCY_IMPLEMENTATION_PLAN.md | ||
| DEPENDENCY_PLAN.md | ||
| PARSER_OVERVIEW.md | ||
| TODO.md | ||
| build.zig | ||
| build.zig.zon | ||
| test_small.h | ||