ArchLang Playground

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.

Room 20.0 m² 5200 4200 N 01 m PROJECTOne RoomDRAWN BYArchLangDATE2026-08-16
"One Room" — a 1-room floor plan, 20 m² total: Room (20 m²); 1 door, 1 window, entrance via d_in.
Open in the editor

What this plan uses

The parts of the language this plan's source writes, each linked to its section of the language reference.

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" }
}

More in Start here

Read more