so simple dollar
One symbol. The number of dollar signs in a row says which command it is.
2021 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
so simple dollar dates from 2021 and calls itself among the simplest programming languages. It has one character, $. A run of them is a command, and its length says which. One $ starts the program, two end it, and the letter z takes 29.
Read the story
Its memory is a row of cells like brainfuck's, but no command adds to a cell or takes from it. A cell only gets a value by storing a character of input, so the program can print fixed lower case letters and echo what it read, and nothing else. The wiki files it under jokes and as unusable for programming.
The machine
Run of $ | Does |
|---|---|
| 1 | Start the program |
| 2 | End the program |
| 3 | Start printing |
| 4 to 29 | Print a to z, inside a print |
| 35 | Print the character in the current cell, inside a print |
| 30 | End printing |
| 31 | Take a character of input |
| 32 | Store it in the current cell |
| 33 34 | Move to the right or left cell |
Every command stands on its own, with white space around it. The specification leaves the end of the input open. It gives 0, as does storing before anything was taken.
Example
The Hello, world! prints helloworld, without the comma, the space and the capitals, which the language…
The Hello, world! prints helloworld, without the comma, the space and the capitals, which the language cannot print.
The one-time cat takes one character, stores it and prints the cell.
See also
Also in Jokes
Write your own in Run Convert a program from so simple dollar
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: so-simple-dollar.
Command line
shib run so-simple-dollar -e '$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$' --input 'a'shib manual so-simple-dollarSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/so-simple-dollar.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org