AntiLang
Three letters, two words and a line break, made in two minutes to win an argument.
SpaceByte, 2022 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
SpaceByte made AntiLang on 8 July 2022 as an answer to ඞlang. In ඞlang the code has no effect on what comes out, so SpaceByte holds that it is a program and not a programming language. AntiLang is about as small as a language can get while the code still decides the output. Its interpreter took less than two minutes to write.
Read the story
The specification also has an interpreter in Applesoft BASIC by the wiki user Yes, who made ඞlang. It looks for the capitals A, B and C, and counts the steps.
The machine
| Char | Does |
|---|---|
a | Write sus |
b | Write amogus |
c | Write a line break |
Every other character is ignored, so a comment is any text without those three letters. Nothing is read, every program stops, and no program can compute anything. The specification's examples spell the second word amongus. Its table and the BASIC interpreter both write amogus, and so does this implementation.
Example
acb puts the two words on two lines.
acb puts the two words on two lines. In a then b only the first and the last letter count, as t, h, e and n are no commands.
Patterns it teaches
- Every text runs: there are no syntax errors, only letters that print and letters that do not.
Further
See also
Also in Jokes
Write your own in Run Convert a program from AntiLang
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: antilang.
Command line
shib run antilang -e 'a'shib manual antilangSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/antilang.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org