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
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
| Command | Does |
|---|---|
+ | Add 1 to the accumulator |
- | Take 1 from it |
A | Print it as a character |
N | Print it as a number |
v | Print 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.
The second program is the line feed example. It prints 1, an empty line, 2, an empty line and 3.
Patterns it teaches
- Counter machines: a single counter, without even a test.
Further
See also
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-2Source
- 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