Berildocs GitHub

Memory cards

A compiler is a pipeline of representations

confidence: lowupdated: 2026-11-25status: activeengineeringcompilerparsing

Claim#

Lex, parse, lower to IR, optimize, emit. Each stage has an invariant and a test.

Test#

Write the AST and the invariant. Test one stage at a time.

Proof#

A minimal program through every stage.

Failure modes#

An optimizer without a semantics test changes behavior.