Calculation

From Esolang
Jump to navigation Jump to search

language where you type operations

operations

0-9 = their respective numbers
A-Z = variables
= = assign or equals, depends on context
, = at end of statement
# = jump to line number
expression of math = what it would be
? = is an if
$ = if tried to get value of, asks for an input, and thats its value (for each instance, not for every)
[] = brackets for if blocks
! = output var

examples

Fibonacci sequence:

A = 1,
B = 1,
C = 0,
C = B,
B = A+B,
A = C,
# = 4,

Truth machine:

I = $,
! = I,
? I = 1 [
# = 2,
]