esolang

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

Expected: helloworld

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
1Start the program
2End the program
3Start printing
4 to 29Print a to z, inside a print
35Print the character in the current cell, inside a print
30End printing
31Take a character of input
32Store it in the current cell
33 34Move 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.

Expected: a

Further

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-dollar

Source

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