NoCode
No syntax and no source. The interpreter decides which program you meant.
Dominicentek · Turing complete: no · ●○○ easy · esolangs.org
Tested with 6 known programs · Test method
Run it
The idea
Dominicentek wrote NoCode as a language without any source code. Its interpreter knows eight programs, and a flag on the command line picks one. There is nothing else to write, so there is nothing to get wrong.
Read the story
The quine prints the program's source, and since there is none, it prints nothing at all.
The machine
The flag goes where the source would be.
| Flag | Runs |
|---|---|
-h | Hello World |
-t | Truth machine, 0 once or 1 forever |
-c | Cat, prints the input |
-fb | Fizz Buzz from 1 to 100 |
-b | 99 Bottles of Beer |
-f | Factorial of the input |
-q | Quine, prints nothing |
-i | Counts up by 1 forever |
Each has a long form as well, such as --hello-world. The specification does not give the words of the song, so -b is left out. Fizz Buzz and the counter put each item on its own line.
Example
The factorial multiplies the number by every whole number above 0 and below it.
The factorial multiplies the number by every whole number above 0 and below it. So 10 gives 3,628,800, and 0 gives 0, not 1.
Patterns it teaches
- Quine: with no source, the empty output is a perfect copy.
Further
See also
No-code esolang
Zero-dimensional languages
Write your own in Run Convert a program from NoCode
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: nocode.
Command line
shib run nocode -e '-h'shib manual nocodeSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/nocode.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org