Dumbascii

From Esolang
Jump to navigation Jump to search
This esolang have not so many categories, please, add more.
dumbascii
Paradigm(s) imperative, minimalistic
Designed by User:DumbEsolangsOrgUser
Appeared in 2025
Memory system monovariable
Dimensions one-dimensional
Computational class Output only
Major implementations [1]

Dumbascii is one of unusable for programming esoteric programming languages for outputting ASCII characters by incrementing and decrementing the accumulator.

Esolang Overview

Dumbascii uses .txt files and can output ASCII symbols. Commands:

Command Description
A Outputs the accumulator as an ASCII character
- Decrements the accumulator by 1
+ Increments the accumulator by 1

All characters other than +-A are considered comments and ignored.

Why "Dumbascii" – name of the esolang?

Dumbascii has this name because it was developed by DumbEsolangsOrgUser and can output ASCII characters. Dumb + Ascii = Dumbascii

Implementations

Codes

Official interpreter (file reader, written in Python)

n = 0

filename = input("Enter the code file name: ")

try:
    with open(filename, "r", encoding="utf-8") as f:
        code = f.read()
except FileNotFoundError:
    print("Error: file not found.")
    break

for c in code:
    if c == "+":
        n += 1
    elif c == "-":
        n -= 1
    elif c == "A":
        print(chr(n), end="")

Official Interpreter (IDE, written in Python)

a = 0
code = input()
for character in code:
    if character == "A":
        print(chr(a), end="")
    if character == "+":
        a += 1
    if character == "-":
        a -= 1

Official interpreter (IDE, smaller, written in Python)

a = 0
for c in input():
    if c == "A": print(chr(a), end="")
    if c == "+": a += 1
    if c == "-": a -= 1

Online Interpreters

Official online interpreter on Google Sites

[2]

Examples

Hello, Vnqkc

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++A+++++++++++++++++
------A---------A++++++A+++++++++++++A++++++++++++++++++++++++++A+++++++++
++++++++++A+++A----A------A
--------A

This was supposed to be "Hello, World", but something went wrong.

See also