Skip to content

Examples

Every file lives in examples/ and is intentionally minimal. The Tutorial walks through the four in the first group.

The reference compiler is not finished, so these are normative illustrations rather than files you can build today.

File Shows
cottage.crn The minimum useful build: struct, theme, slots.
themed-tower.crn Abstract material tokens, per-floor level, override-promotion.
redstone-door.crn Logical redstone: signal binding, circuit region, assertions.
village.crn Multi-building with site and topological connect.
File Shows
roof-shed.crn kind=shed slope_to=front: a single slope rising toward the front wall.
roof-hip.crn kind=hip on a square footprint: four slopes onto one apex cap.
roof-flat.crn kind=flat: a single deck layer, with the overhang extending it past the walls.
File Shows
l-walkway.crn A Manhattan L between two ports that differ on both axes.
at-side-walkway.crn at=left / at=right door anchors pulling ports toward the facing corners.
window-walkway.crn A window port, anchored at the rectangle’s centre and pinned to the ground row.
File Shows
edition-fallback.crn Per-edition theme variants for a slot with no cross-edition primitive.
crossbar.crn Two nets sharing a wire coordinate: what the crossing pass reports and does not repair.