t27.aiРусский

The stages of t27c

You will learn

The path a spec takes inside t27c: tokens, syntax tree, types, HIR, code.

t27c reads a spec in stages. The lexer cuts the text into tokens. The parser builds a syntax tree. The type checker checks every width and every call. The tree is lowered to HIR, a simpler form, and each backend writes code from it. This widget runs those stages on a spec in your browser and shows what each one produced, so an error has a stage you can point at.

Try it

Pick an example and step through the stages; find the stage where a type error would stop.

Open the interactive lesson →

Inside t27c: watch a compiler read your code, stage by stage
Inside t27c: watch a compiler read your code, stage by stage ↗

Open the lesson's spec in the player: specs/tutorial/06_structs_enums_switch.t27

All lessons