esolang

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

Expected: Unusable

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 holdsIt prints
The name of the languageUnusable in its place
Any other textThat 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.

Expected: Hello, world!
Expected: This Esolang Is Unusable

Patterns it teaches

Further

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

Source

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