Turth-machine

From Esolang
Jump to: navigation, search

Turth-machine is a simple pseudo-code programming language.

Syntax

Ask for variable input a variable
If the Something 'Condition' Another thing Compare two things. A bullet point and indentation should be added.
is same as == in C
Output Var or value print something in console.
Whereas if Something Condition Another thing Compare two things if the last is not true. A bullet point and indentation should be added.
Repeat Value Repeat something in the loop Value times. Same bullet point and indent.
infinitely That is infinitely many.

Example(Truth-machine)

  • Ask for input
  • If the input is 0
    • Output 0
  • Whereas if the input is 1
    • Repeat infinitely
      • Output 1