Burgercamp
Deadfish with bigger steps, where 25 is the number that falls back to 0.
2023 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
Burgercamp is a variation of Deadfish from 2023. It keeps the one accumulator and four commands, but i adds 7 and d takes 3 away where Deadfish adds and takes 1, and m multiplies by 5 where Deadfish squares. Deadfish turns 256 into 0; Burgercamp turns 25 into 0. There are no loops and no input, so a program runs straight through once and can only print numbers.
The machine
| Char | Does |
|---|---|
i | Add 7 |
d | Take 3 away |
m | Multiply by 5 |
o | Print the accumulator and a space |
Any other character prints a line feed. After every character an accumulator of exactly 25 becomes
- The specification has its interpreter in Common Lisp, and this implementation follows it, down to the space after
each number.
Example
The three tests.
The three tests. In the first, ididd reaches 5 and m makes it 25, which turns into 0.
In the third the accumulator reaches 25 on the way up, at 18 plus 7, and starts again from 0. Two more i and a d make 11, and m makes 55.
Further
- esolangs.org/wiki/Burgercamp
- Deadfish, the language it changes.
See also
Also in Jokes
Write your own in Run Convert a program from Burgercamp
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: burgercamp.
Command line
shib run burgercamp -e 'ididdmo'shib manual burgercampSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/burgercamp.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org