Skip to content

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 ​

OrderDocumentWhat It Addresses
1RFC-039 Main TextFour-layer model, stage contracts, criteria classification, glossary
2HOWTO.mdImplementer’s guide: pre-work checklist and patch adjudication
3coding-rules.mdThree prohibitions, D0–D4 decision procedure, red lines and review checklist (the rules themselves)
401-architecture.mdFour layers and dependencies, directory responsibilities, feature routing, stages and obligation ledger
502-frontend.mdLexing, parsing, type representation and type tables
603-ir-and-criteria.mdIR/SSA, lowering, bytecode, equivalence criteria

Documentation List ​

DocumentLayerTopic
01-architecture.mdCross-layer/L1Dependency direction, directory responsibilities, feature routing, stage set, Program/Driver, obligation ledger
02-frontend.mdL2Lexical structure, Pratt grammar, precedence table, type representation, type identity, type-table gates
03-ir-and-criteria.mdL3/Cross-layerIR 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.