The End Of Time
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 an 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
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
}