esolang

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

Expected: Hello, World!

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.

FlagRuns
-hHello World
-tTruth machine, 0 once or 1 forever
-cCat, prints the input
-fbFizz Buzz from 1 to 100
-b99 Bottles of Beer
-fFactorial of the input
-qQuine, prints nothing
-iCounts 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.
Expected: meow
Expected: 3628800

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

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 nocode

Source

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