Dish

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Dish (or Dead fISH) is a deadfish inspired esolang created by User:Ractangle

Syntax

Command Action
i deadfish i command.
d if a!=0, decrement a. Else skip to the next d.
s Push the accumulator to the stack.
o if len(s)>0, print the top element on the stack as a character. Else print a as a number.
h Halt program.
+ Adds two stack elements together and pushes the result into the stack.
- Same as + but does subtraction instead
b Goes to the previous d.
u Gets user input.
v Sets the value on the stack and gets popped.
~ Discards the top value on the stack.

Examples

Truth-machine

udobdoh

The powers of two

iiidss+v~ob