Chronofuck

From Esolang
Jump to navigation Jump to search

Chronofuck is a theoretical programming language conceived by user:Jabutosama. It is a brainfuck derivative based on an idea of playing with causality and time.

Commands

You can divide the commands into classic brainfuck and added ones.

Classic Brainfuck commands

Command Meaning Reversed
+ adds 1 to current cell subtracts
> moves the cell pointer to right moves to left
{ if current cell is zero jump to matching } flips to }.
} if current cell is zero jump to matching { flips to {.
. prints current value as a character takes brainfuck -style input

New Commands

The term "x" in the following context refers to a value stored in the current cell.

Command Meaning Reversed
W walk time; execute exactly x instructions, then jump to proceeding instruction. goes to opposite direction in code
J jump time; jump x instructions. goes to opposite direction in code
E erase time; erases x instructions from continuity, applying consequences for following x instructions, after jumps to proceeding instruction. goes to opposite direction in time
P push time; next x instructions are skipped. then after next x instructions, execute the skipped ones. goes to opposite direction in code
R reverse time; reverses the instruction read direction. no difference