One room — an ArchLang floor plan example
The smallest complete plan: one room, one door, one window and a dimension chain.
This plan compiles to 1 room, 20 m² of floor area and 1 window; every room is reachable from the entrance.
The source
This is the whole plan. The drawing above is what the compiler produced from it — nothing was drawn by hand.
# The smallest complete ArchLang plan: one room, one door, one window, one dimension chain.
# Every other example is this file with more of it — a shell you can walk into, a room that
# knows what it is for, and openings pinned to the wall by position rather than coordinate.
plan "One Room" {
units mm
grid 50
north up
dims auto overall
wall id=shell exterior thickness 200 { (0,0) (5000,0) (5000,4000) (0,4000) close }
room id=r_main at (0,0) size 5000x4000 label "Room" uses living
door id=d_in on shell at 60% width 900 swing in # 60% of the loop's run: the south wall
window id=w_n on shell at 10% width 1500 # 10%: the north wall
title { project "One Room" drawn_by "ArchLang" date "2026-08-16" }
}