Ooga Booga
LOLCODE in a cave. Strictly typed, and every integer type is named after a rock.
0xnullsect0r, 2026 · Turing complete: yes · ●○○ easy · esolangs.org
Tested with 5 known programs · Test method
Run it
The idea
0xnullsect0r made Ooga Booga in 2026, after LOLCODE. Its compiler oogac turns a program into Rust and hands it to rustc. So under the cave words sits Rust's type system. ROCK is a 32-bit integer, TEENYPEBBLE an unsigned byte and HUGEROCK 128 bits wide, and a ROCK and a BIGROCK cannot be added. An overflow stops the program, as a Rust panic does in a plain rustc build.
The machine
One statement per line, and every block ends with UGHA.
| Words | Does |
|---|---|
OOGA x: ROCK BE 5 | Declare a variable with its type |
x GETS x PLUS 1 | Assign |
SAY x HEAR name | Print a line; read a line into WORDS |
IFF NOPE IFF NOPE | If, else if, else |
UGGA WHILE c UGGA DO | While loop; endless loop |
STOP SKIP | Break; continue |
MAGIC f(n: ROCK) -> ROCK | Define a function |
GIVEBACK x | Return |
OOF | Comment to the end of the line |
The operators are PLUS MINUS TIMES DIVVY MOD, IS ISNT BIGGR SMALLR BIGGR IS SMALLR IS and AND OR NOT. PLUS joins strings too, after WORDY turns a number into one.
Example
The factorial from the specification.
The factorial from the specification. The literal 1 in GIVEBACK 1 takes the function's type, BIGROCK.
A while loop, and integer division next to float division. Floats print as Rust prints them.
A TEENYPEBBLE holds 0 to 255. Adding 10 to 250 panics, so the last line never prints.
Patterns it teaches
- Turing completeness: it is argued from variables, branches, while loops and recursion.
Further
See also
Generated by AI
Write your own in Run Convert a program from Ooga Booga
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: ooga-booga.
Command line
shib run ooga-booga -e 'OOF Hello World in Ooga Booga!
OOF Cave creature greet the world.
OOGA greeting: WORDS BE "Ooga Booga! Cave greet world!"
SAY greeting
SAY "Much wow. Very caveman. So language."'shib manual ooga-boogaSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/ooga-booga.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org