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.

Anti-Plushie language DIY

From Esolang
Jump to navigation Jump to search

Anti-Plushie language DIY (APLD for short) is an esolang invented by User:None1. It's Anti-Plushie language, but it's you who decide the restrictions!

Syntax

It's Deadfish, but you can add restrictions:

  • x "errmsg": If the accumulator will be x after a command, print "errmsg" (without quotes) and terminate.

Examples

Anti-Plushie language interpreter

4 "Fuck off!"
31 "Cut it out!"
3 "Fuck you!"
2 "Oh shit!!!"

Deadfish interpreter

N

Deadfish, but you can't store 1

1 "You can't store 1"

Deadfish on C major

-1 "Error: The value must be a natural number."

Implementation in Python

by User:Ractangle

BOUND=0;a=0;dis={}
def is_int(x):
    try:int(x);return True
    except:return False
while 1:
    i=input().split(" ")
    try:
        if i[1][0]=='"'and i[-1][-1]=='"'and is_int(i[0]):
            dis[int(i[0])]=" ".join(i[1:])[1:-1]
    except IndexError:
        for j in i[0].lower():
            for k in dis:
                if a==k:print(dis[k]);exit()
            if a in[256,-1]and BOUND:a=0
            if j=="i":a+=1
            elif j=="d":a-=1
            elif j=="s":a*=a
            elif j=="o":print(a)
            for k in dis:
                if a==k:print(dis[k]);exit()