Brolang
a sigma-certified programming language for the terminally online
Brolang is a real, functional programming language written in Rust. Every keyword sounds like it fell out of a TikTok comment section, but underneath the absurd vocabulary is a serious little compiler front-end and a tree-walking interpreter. The engineering is not stupid. The language very much is.
sigma aura = 100 bro
rizz mog(a, b) bro
gyatt a + b bro
end bro
skibidi aura > 0 bro
print("sigma aura detected") bro
aura = aura - 1 bro
end bro
Install
Requires a recent Rust toolchain. Zero dependencies.
From source
git clone https://github.com/PrathamGhaywat/brolang.git
cd brolang
cargo build --release
./target/release/brolang --version
Install script
Downloads a prebuilt binary from GitHub Releases, falling back to
cargo install.
# unix (linux / macos)
curl -fsSL https://raw.githubusercontent.com/PrathamGhaywat/brolang/main/scripts/install.sh | sh
# windows (powershell)
irm https://raw.githubusercontent.com/PrathamGhaywat/brolang/main/scripts/install.ps1 | iex
Run it
brolang # REPL
brolang examples/hello.bro # run a file
brolang --help # usage
brolang --locked-in # performance mode (vibes)
The docs
| Page | What it covers |
|---|---|
| syntax | statements, expressions, keywords, types, operators |
| stdlib | the standard library, all of it actually works |
| examples | runnable programs from hello to maximum brainrot |
| errors | runtime and parse errors, technically useful and terminally online |
Architecture
Source Code
↓
Lexer src/lexer.rs text → tokens
↓
Parser src/parser.rs recursive descent → AST
↓
AST src/ast.rs
↓
Interpreter src/interpreter.rs tree-walking evaluator
↓
Output src/builtins.rs print, yap, and friends
Numbers are
f64 everywhere, so 6_7 is a
perfectly valid literal (it equals 67). Arrays are
reference-counted, so push and pop mutate
in place. Functions are declared with rizz and called
by name; recursion works.