'6'
Every program prints 6.
2024 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
6 is a constant language. It does not matter what the program says; it prints 6. The specification lists a "Print 6" program, a self interpreter and a Python polyglot, and they are all the same program in effect. The quine is 6, since that prints itself.
The machine
There is none. The program is not read at all. The specification gives interpreters for it in a dozen languages, from Befunge (6.@) to a brainfuck program that prints the character 6.
Example
Further
See also
No-code esolang
Write your own in Run Convert a program from '6'
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: 6.
Command line
shib run 6 -e ' 'shib manual 6Source
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/6.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org