esolang

Dots

Three commands, told apart by how many dots they start with.

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

Tested with 2 known programs · Test method

Run it

Expected: Hello World!

The idea

Dots is written almost entirely in dots, colons and semicolons. One dot ends the program, two dots print and three dots define a variable. A colon comes before each argument and a semicolon ends every command. There is no input, no arithmetic and no jump, so every program stops. esolangs.org files it under output only and unusable for programming.

The machine

CommandDoes
.;End the program
..:text;Print the text, or the value of the variable with that name
...:name:value;Define a variable

A name has no whitespace, dots, colons or semicolons. A text or a value is anything but a semicolon, so no program can print one. Space, tab and line breaks between commands are passed over. The specification's grammar says the last command is .;, and a program without it is an error that prints nothing.

Example

The print command looks for a variable of that name first.
Expected: Hello, World!

The print command looks for a variable of that name first. x holds 42, so the first print gives 42. The second text has a space in it, so it cannot be a name and prints as it is.

Expected: 42 is x

Further

Also in Jokes

Write your own in Run Convert a program from Dots

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: dots.

Command line

shib run dots -e '..:Hello World!;
.;'
shib manual dots

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/dots.js

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

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