Compiler Architecture · Ancillary Documents
This directory expands the four-layer contracts defined in RFC-039 Compiler Architecture. It documents only currently effective specifications and code facts: no design process, implementation batches, historical defects, or deprecated approaches.
Reading Order
| Order | Document | What It Addresses |
|---|---|---|
| 1 | RFC-039 Main Text | Four-layer model, stage contracts, criteria classification, glossary |
| 2 | HOWTO.md | Implementer’s guide: pre-work checklist and patch adjudication |
| 3 | coding-rules.md | Three prohibitions, D0–D4 decision procedure, red lines and review checklist (the rules themselves) |
| 4 | 01-architecture.md | Four layers and dependencies, directory responsibilities, feature routing, stages and obligation ledger |
| 5 | 02-frontend.md | Lexing, parsing, type representation and type tables |
| 6 | 03-ir-and-criteria.md | IR/SSA, lowering, bytecode, equivalence criteria |
Documentation List
| Document | Layer | Topic |
|---|---|---|
| 01-architecture.md | Cross-layer/L1 | Dependency direction, directory responsibilities, feature routing, stage set, Program/Driver, obligation ledger |
| 02-frontend.md | L2 | Lexical structure, Pratt grammar, precedence table, type representation, type identity, type-table gates |
| 03-ir-and-criteria.md | L3/Cross-layer | IR structure, SSA invariants, validation/snapshots, lowering, bytecode, C1–C6 criteria |
These documents are not RFCs and are not tracked for status by scripts/rfc/check_tracking.py; they are part of RFC-039.
