An unusable esolang made with an one-line interpreter and a long name
A program prints itself, except that the language's own name turns into the word Unusable.
Mario0Fan · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
Mario0Fan wrote the whole interpreter as one line of Python. It reads a line of code and prints it back, with every copy of the language's 69 character name replaced by Unusable.
Read the story
So every text is a program, and almost every program prints itself. The specification calls that an easy quine.
The machine
| The program holds | It prints |
|---|---|
| The name of the language | Unusable in its place |
| Any other text | That text |
The interpreter reads the program with Python's input(), so only the first line counts, and print() adds a line feed at the end. The prompt Enter code: that input() shows is not part of the output.
Example
Three programs.
Three programs.
Patterns it teaches
- Every text runs, as any line is a program.
- Quine, as nearly every program prints itself.
See also
Also in Jokes
Write your own in Run Convert a program from An unusable esolang made with an one-line interpreter and a long name
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: an-unusable-esolang-made-with-an-one-line-interpreter-and-a.
Command line
shib run an-unusable-esolang-made-with-an-one-line-interpreter-and-a -e 'Hello, world!'shib manual an-unusable-esolang-made-with-an-one-line-interpreter-and-aSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/an-unusable-esolang-made-with-an-one-line-interpreter-and-a.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org