We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Print "deadfish"

From Esolang
Jump to navigation Jump to search

Print "deadfish" is a little extension of the Deadfish programming language. It adds two new commands: The "h" commands which ends the program and the "p" command which prints the current value as an ascii character.

The interpreter is written in batch:

@echo off
setlocal enabledelayedexpansion
set b=☺☻♥♦♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂
:a
set/pi=^>^> 
if %i%==i set/aa=%a%+1
if %i%==d set/aa=%a%-1
if %i%==s set/aa=%a%*%a%
if %i%==o echo %a%
if %i%==p echo !b:~%a%,1!
if %i%==h goto :eof
if %a%==256 set a=0
if %a%==-1 set a=0
set i=n
goto a