Ooga Booga 🪨🔥¶
"Me make code. Code do thing. UGH!"
Ooga Booga is a caveman-themed esoteric programming language that transpiles to Rust and compiles to a native binary. It is strongly typed, Turing complete, surprisingly expressive, and 100% caveman.
Taste the language¶
OOF Compute factorial — recursion in cave style!
MAGIC factorial(n: BIGROCK) -> BIGROCK
IFF n SMALLR IS 1
GIVEBACK 1
UGHA
GIVEBACK n TIMES factorial(n MINUS 1)
UGHA
OOGA i: ROCK BE 1
UGGA WHILE i SMALLR IS 10
SAY WORDY(i) PLUS "! = " PLUS WORDY(factorial(i))
i GETS i PLUS 1
UGHA
Output:
Why Ooga Booga?¶
- Cave-themed keywords —
SAY,MAGIC,UGGA WHILE,GIVEBACK,IFF,NOPE - Strongly typed — 18 Rust-mapped types (
ROCK= i32,WORDS= String,GRUNT= bool, …) - Transpiles to Rust — native binaries, zero runtime dependencies
oogabuild tool — works likecargo:ooga new,ooga build,ooga run- Turing complete — loops, recursion, mutable state, conditionals
- Compiler in Rust — fast, correct, friendly caveman error messages
- Real documentation — this site
Quick links¶
- :material-download: Installation — install the toolchain
- :material-rocket-launch: Quick Start — write your first program
- :material-book-open: Language Reference — full syntax guide
- :material-code-braces: Examples — annotated programs
Status¶
Ooga Booga is a complete, working language implementation. The compiler handles the full pipeline: lexing, parsing, semantic analysis, and Rust code generation. Programs are compiled to native binaries via cargo.
All example programs compile and run correctly. 75+ automated tests cover the lexer, parser, semantic analyser, code generator, and end-to-end pipeline.