Skip to content

Examples

Worked Cairn (.crn) examples. Each one is referenced by Tutorial and is intentionally minimal so the language surface is the only thing on screen.

The reference compiler is not implemented yet, so these examples are currently normative illustrations, not files you can build. They are kept under cargo check indirectly by being referenced from the spec and tutorial.

FileDemonstrates
cottage.crnThe minimum useful build: struct + theme + slots + selectors.
themed-tower.crnAbstract material tokens, per-floor levels, override-promotion.
redstone-door.crnLogical redstone: signal binding, circuit region, assertions.
village.crnMulti-building via site and topological connect.

To follow along, read the tutorial first; it walks each file from top to bottom and references the spec chapter behind every line.