esolang

Dumbascii-2

One number, counted up and down by hand, and printed as a letter or as itself.

2025 · Turing complete: no · ●○○ easy · esolangs.org

Tested with 2 known programs · Test method

Run it

Expected: 123

The idea

Dumbascii-2 is Dumbascii with two more commands and its own file extension, .dumbascii. There is a single accumulator, no loops and no input, so a program is a straight walk from one character code to the next.

The machine

CommandDoes
+Add 1 to the accumulator
-Take 1 from it
APrint it as a character
NPrint it as a number
vPrint a line feed

The accumulator starts at 0, and every other character is ignored. The specification's table says v prints one line feed, but the Python writes print("\n"), which prints two. This implementation does what the Python does.

Example

The second program is the line feed example.
Expected: 1 2 3

The second program is the line feed example. It prints 1, an empty line, 2, an empty line and 3.

Patterns it teaches

Further

Also in Turing tarpits

Write your own in Run Convert a program from Dumbascii-2

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: dumbascii-2.

Command line

shib run dumbascii-2 -e '+N+N+N'
shib manual dumbascii-2

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/dumbascii-2.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org