The End Of Time

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

The End Of Time (TEOT) is a stack-based Turing-complete esolang created by Notxnorand on December 24th 2025.

Commands

  • print():
Prints to the console.
print("Hello, World!")
  • if/elif/else?:
Conditional execution.
if 0? {
  print(1)
} elif 1<0? {
  print(2)
} else? {
  print(3)
}
  • var:
Variable assignment.
var apples = 0
  • input():
Gets input from the user
var name = input("Enter your name: ")
  • push:
Pushes a value to the end of the stack
push "Username"
  • pop:
Pops a value from the end of the stack
var user = pop
  • reset:
Resets the timeline besides the stack
reset
  • stack:
Returns the length of the stack
print(stack)

Operators

Logical

  • !
Not (unary)
  • &
And (binary)
  • |
Or (binary)

Comparison

  • ==
Equal
  • !=
Not equal
  • <
Less than
  • >
Greater than
  • <=
Less than or equal to
  • >=
Greater than or equal to

Arithmetic

  • +
Addition
  • -
Subtraction
  • /
Division
  • *
Multiplication
  • %
Modulo

Other

  • length()
  • int()
  • str()
  • float()

Types

  • Strings:
Any string of text enclosed in quotations.
print("Hello, World!")
print('Hello, World!')
print(`Hello, World!`)
  • Integers:
Any non-double numerical quantity.
print(1)
print(-19)
  • Floats:
Any double numerical quantity.
print(3.14)
print(10.0)
  • Booleans:
True or False
print(True)
print(False)
  • Arrays:
Any list of quantities separated via commas and enclosed in brackets
print(["Abel", "Baker", "Charlie"])
print([10, 42, 726])
print(list[0])

Examples

print("Hello, World!")
var name = input("Enter your name: ")
print("Hello, " + name + "!")
var x = 5
if x > 3? {
  print("big")
} else? {
  print("small")
}
if stack? {
  print("Stack is not empty")
} else? {
  print("Stack is empty")
}
push 10
push 20
var a = pop
var b = pop
print(a)
print(b)
print("tick")
reset
if stack? {
  var n = pop
  if n == 0? {
    print("blast off!")
  } else? {
    print(n)
    push n - 1
    reset
  }
} else? {
  var n = input("Start number: ")
  push n
  reset
}
if stack? {
  print(1)
  reset
} else? {
  var x = input("Number: ")
  if x == 0? {
    print(0)
  } else? {
    push 1
    print(1)
    reset
  }
}
if stack? {
  var total = pop
  var n = input("Next number (0 to stop): ")
  if n == 0? {
    print("Total: " + total)
  } else? {
    push total + n
    reset
  }
} else? {
  push 0
  reset
}
if stack? {
  print("B")
  pop
  reset
} else? {
  print("A")
  push 1
  reset
}

Truth Machine

if stack? {
  print(1)
  reset
} else {
  var a = input("Enter 1 or 0: ")
  if a == 1 {
    push 1
    reset
  } else {
    print(0)
  }
}