OREO
A program is a stack of cookies. O is the biscuit, RE is the cream, and the biscuit &O prints.
Kamish, 2020 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
Kamish made OREO in 2020 and says on its page that it is useless, as all of their languages are. It has three commands. RE adds 1 to the current cell, O moves the pointer right and &O prints the cell as a character. Those are brainfuck's +, > and ., and the Slashes program in the specification turns OREO into exactly them.
Read the story
With no way back left, every cell the pointer leaves is gone for good, so the tape works as one counter that O clears. There are no loops and no input. A program runs straight through once, and every program halts.
The Hello World has one line, one cookie, for each character. A line is O, then RE as many times as the character's code, then &O. Its first line has 72 RE for H, and the whole program is 2,373 characters for the 13 of Hello, world!.
The machine
| Command | Does |
|---|---|
RE | Add 1 to the current cell |
O | Move right onto a new cell, which holds 0 |
&O | Print the current cell as a character |
Spaces, tabs and line breaks between commands do nothing. Any other character stops the run with an error, as in the Common Lisp interpreter in the specification. The specification also has a C program that reads O as counting up and RE as clearing, so it prints only zero bytes for the Hello World. This implementation follows the command table, the Lisp interpreter and the Slashes compiler, which agree.
Example
The last line of the Hello World, 33 RE and a print.
The last line of the Hello World, 33 RE and a print.
Further
- esolangs.org/wiki/OREO
- fuck-brain, which the specification calls the same language with other characters.
- brainfuck
See also
Also in Jokes
Write your own in Run Convert a program from OREO
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: oreo.
Command line
shib run oreo -e 'ORERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERE&O'shib manual oreoSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/oreo.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org