Deadfish 2

From Esolang
Jump to navigation Jump to search

Deadfish 2 is a superset of Deadfish made by m654. As well as an accumulator, Deadfish 2 has a string which can be set using the input command.

Commands

Deadfish 2 has nine commands, five of which are new.

Command Description
i Increment the accumulator.
d Decrement the accumulator.
s Square the accumulator.
o Output the accumulator.
O Output the string.
c Output the accumulator as a character.
n Set the accumulator to 0.
r Read input and store it in the string.
h Halt the program

Examples

Hello world!

This program prints "Hello world".

iisiiiisiiiiiiiiciiiiiiiiiiiiiiiiiiiiiiiiiiiiiciiiiiiicciiicdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddcdddddddddddddddddddddsddcddddddddciiicddddddcddddddddch

Cat program

This program reads the input and copies it to the output.

rOh

Interpreter

  • The official Deadfish 2 interpreter can be found at GitHub here.
  • An interpreter written in C can be found here