Truth Machine (language)

From Esolang
Jump to navigation Jump to search
Not to be confused with Truth-machine.

Truth Machine is an esolang created by User:ResU in 2021.

Commands

Cmd Description
input(a) Gets user input.
if a=0: Self-explanatory.
print(0) Self-explanatory.
stop Self-explanatory.
if a=1: Self-explanatory.
print(1) infinity Self-explanatory.

Examples

Truth machine

input(a)
if a=0:
print(0)
stop
if a=1:
print(1) infinity

Interpreter in Python

def stop():
    break
def print_infinity_ones():
    while True:
        print(1)