f()
A Deadfish substitution. Each of its 4 tokens replaces one Deadfish command; everything else works as in Deadfish.
Spelling
| Token | Command | What it does |
|---|---|---|
f | i | add 1 to the number |
f() | d | take 1 from the number |
f␠() | s | square the number |
f(()) | o | print the number in decimal, then a newline |
In the table, ␠ marks a space inside a token.
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 f().
Expected output
8
Output
- Increment twice to 2, square to 4, increment four times to 8 and print. Deadfish explains each command.