esolang
Languages ยท Jokes2019

H๐ŸŒ

Six greetings, a way to stop, and everything else is a quine.

OsmineYT, 2019 ยท Turing complete: no ยท โ—โ—‹โ—‹ easy ยท esolangs.org

Tested with 4 known programs ยท Test method

Run it

Expected: Hello, World!

The idea

OsmineYT designed H๐ŸŒ, also written HWorld, in 2019. It can print six fixed greetings and quit. A command it does not know is printed as it stands, so a is a quine, and so is a whole sentence. There is no way to compute anything.

The machine

CommandPrints
hHello!
hhHello, Hello!
wWorld!
wwWorld, World!
hwHello, World!
whWorld, Hello!
qnothing; the program ends

The specification does not say how commands are separated. This implementation reads one command per line and puts one line feed between two outputs.

Example

Expected: THIS IS JUST A SIMPLE QUINE.
Expected: Hello! World!

Further

Ideas it shows

Also in Jokes

Write your own in Run Convert a program from H๐ŸŒ

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: h.

Command line

shib run h -e 'a'
shib manual h

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/h.js

Docs: Kernel instructions ยท The .shib format ยท Command line ยท Adding a language

Source esolangs.org (CC0) ยท Edit on esolangs.org