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) Same as Python command.
if a=0: Self-explanatory.
print(0) Same as Python command.
stop Stops the program.
if a=1: Same as Python command.
print(1) infinity Prints 1 infinitely.

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():
  a=1
  while a>0:
    print(1)
    a++