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.

NotDeadfish++

From Esolang
Jump to navigation Jump to search

NotDeadfish++ is a deadfish-derivative-derivative by User:Cordership.

Syntax

Operation Definiton Abbreviation for:
i Increment the accumulator. increment
d Decrement the accumulator. decrement
s Square the accumulator. square
o Output the accumulator. output
n Negate the accumulator. negate
a Sets accumulator as its absolute value. abs
h Halts program. halt
c Cube the accumulator. cube

Interpreters

The Second Coming

open variable_n
open variable_acc
n=input()
acc=0
for x in n:
    match x:
        if match "i":
            acc=acc+1
        if match "d":
            acc=acc-1
        if match "s":
            acc=acc^2
        if match "o":
            print(acc)
        if match "n":
            acc=acc*(-1)
        if match "a":
            acc=;acc;
        if match "h":
            halt
        if match "c":
            acc=acc^3