Quick Start Guide
Welcome to BHaus. It is a textual design language. Humans write it. Text- generating models follow it.
This guide walks through the essentials in about five minutes:
- Install - download or build
bhaus-util - First file - declare types and contracts
- Lint - verify correctness
- Generate - scaffold real source code
- Architecture - model a system with the C4 model
What is BHaus?
BHaus is a design language, not a programming language. A .bhaus file
declares types, contracts and architecture. That is all. It has no control
flow. No value expressions. No arithmetic. It is a specification. A human
writes it. An AI (or a teammate) reads it before implementing.
Here's a minimal example:
VERSION 0.1
STRUCT Domain/Entity/User:
PUBLIC id: Integer
PUBLIC name: String
PUBLIC email: String
PROTOCOL Domain/Repository:
PUBLIC findById(Integer): ?Domain/Entity/User
PUBLIC save(Domain/Entity/User): Boolean