Number Seventy-Four

From Esolang
Jump to navigation Jump to search

Number Seventy-Four is a string-rewriting esolang by User:PythonshellDebugwindow.

Memory

Number Seventy-Four uses an unbounded datastring, initially empty, with the alphabet {0, 1, H}. The program is run in an implicit loop which ends only when the first character of the datastring is H. At the end of the program, the datastring is output.

Commands

Each character is one command. Characters not listed here are undefined behaviour.

Character Command
0 Prepend 0 to the datastring
1 Prepend 1 to the datastring
H Prepend H to the datastring if the first character in the datastring is 0

Example: Truth-machine

Replace ? with your input.

?H

Implementations

A Ruby interpreter and Lean interpreter by User:Bangyen located here.