esolang

Numbered DeadFish

A Deadfish substitution. Each of its 5 tokens replaces one Deadfish command; everything else works as in Deadfish.

Compare all 10

Spelling

Numbered DeadFish’s tokens and the Deadfish command each replaces
TokenCommandWhat it does
1iadd 1 to the number
2dtake 1 from the number
3ssquare the number
4oprint the number in decimal, then a newline
5hstop the program

Tokens are matched longest first; any other character is ignored.

Examples

Example from esolangs.org

Expected output

255
0

Output


Square, add, print

The Deadfish program iisiiiio in Numbered DeadFish.

Expected output

8

Output


  • Increment twice to 2, square to 4, increment four times to 8 and print. Deadfish explains each command.