esolang

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

Expected: 0

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

CharDoes
iAdd 7
dTake 3 away
mMultiply by 5
oPrint the accumulator and a space

Any other character prints a line feed. After every character an accumulator of exactly 25 becomes

  1. 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.

Expected: 210

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.

Expected: 55

Further

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 burgercamp

Source

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