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.

D-

From Esolang
Jump to navigation Jump to search

D- is an Esoteric programming language created by User:Exitcode1 based on Deadfish.

Commands

Commands
D- commands Name
i Increment accumulator.
o Output accumulator value.

Because Deadfish accumulator has a max value of 255, you can overflow it to reset it back to 0.

Interpreter

This is a D- interpreter made in python

a=0
for i in input():
    if i=='i':
        a+=1
        if a==256:
            a=0
    elif i=='o':
        print(a,end='')