esolang

Waïdyoudoudat

Say it out loud and it asks why you did that. Every command is a sentence in capitals, and every line wants an empty line after it.

Legeriergeek, 2026 · Turing complete: yes · ●○○ easy · esolangs.org

Tested with 4 known programs · Test method

Run it

Expected: Hello, World!

The idea

Legeriergeek made waïdyoudoudat in 2026, after Uyjhmn n, to be as verbose as possible. A program is a list of commands in capitals, each one followed by a colon, and between two lines of code there has to be a blank line. The only data are whole numbers in 2048 variables that have numbers for names, so the counter of a loop is VAR!4 and never a word.

Read the story

Blocks have no brackets. A loop or an if says how many lines its block holds, and the line after the block has to be END OF with the name of the command. Nested blocks count their own END OF lines, so adding one line inside means fixing every count around it.

The machine

CommandDoes
CREATE VARIABLE TYPE INT: 1 5Set variable 1 to 5, to VAR!2, or to ASKFORUSERINPUT
INCREASE VARIABLE: VAR!1Add 1; DECREASE VARIABLE: takes 1 away
INSERT TO CONSOLE: VAR!1Print a number
INSERT TO CONSOLE AS ASCII: 72 105Print the characters with these codes
REPEAT WHILE: VAR!1 SUPERIOR 0 2Run the next 2 lines while the test holds
REPEAT UNTIL:Run the block until the test holds
EXECUTE CODE IF TRUE:Run the block once if the test holds
EXIT THE PROGRAM:Stop
COMM:A comment

The tests are EQUALS, NEQUALS, SUPERIOR, INFERIOR, SUPEQ and INFEQ. The specification does not say what the two print commands put after their output. Both end the line here, as a Python print would.

Example

The truth machine.

The truth machine. On 0 the if block prints 0 and stops the program. On 1 it falls through to a loop that prints 1 forever.

Expected: 0

The proof of Turing completeness moves the input from variable 0 to variable 1, one step at a time.

Expected: 7

The prime program is included too. Its outer loop holds 21 lines, and on 30 it prints the ten primes from 2 to 29, one per line.

Patterns it teaches

Further

Also in Hostile

Write your own in Run Convert a program from Waïdyoudoudat

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run waidyoudoudat -e 'INSERT TO CONSOLE AS ASCII: 72 101 108 108 111 44 32 87 111 114 108 100 33

EXIT THE PROGRAM:'
shib manual waidyoudoudat

Source

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

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

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