Skip to content

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:

1! = 1
2! = 2
3! = 6
4! = 24
5! = 120
6! = 720
7! = 5040
8! = 40320
9! = 362880
10! = 3628800

Why Ooga Booga?

  • Cave-themed keywordsSAY, 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
  • ooga build tool — works like cargo: 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


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.