Describe a house as code.

Write the rooms, their sizes and how they connect. A deterministic engine lays out the house, draws it, and checks it against building-code rules on every compile.

// A four-room cottage: the same house as `bim_model::fixtures::cottage_program`.
// The living room and the kitchen are one open space, with no door between
// them. The bath is inside the bedroom: a room written inside another has a
// door into it unless something else is stated, so the bath is reached
// through the bedroom.
house "Cottage" {
  open day {
    room living: living { area >= 180sqft }
    room kitchen: kitchen { area >= 100sqft }
  }
  room bed1: bedroom {
    area >= 120sqft, door_to living
    room bath1: bathroom { area >= 40sqft }
  }
}
Floor plan of Cottage, drawn by the engine
Floor plan

Intent, not geometry

A file says what must be true about the house. The engine solves for walls, doors, windows and dimensions.

Every part can say why

A drawing shows where a wall is, not why. Here each requirement is a line of text with an owner, comments give the reasons, and git history shows what changed and when.

Same input, same house

Compiles are deterministic, and problems read like compiler errors that point at the line responsible.

One model, every output

Floor plans, the roof plan, a 3D model and an IFC file all come from the same model.

This is an early project. Its code findings are advisory: they do not replace review by a qualified professional or the local building department.