Treebrainfuck

From Esolang
Jump to navigation Jump to search

Treebrainfuck is a derivative of brainfuck:

Changes: Treebrainfuck is a version of brainfuck that instead of taking place on a tape, takes place infinitely far up a infinite tree with an infinite number of branches on each node

this variation adds one command: * this command can only be used in front of > where it changes the branch it goes up

Command Description
> Move the pointer up the tree
< Move the pointer back down the tree
+ Increment the memory node at the pointer
- Decrement the memory node at the pointer
. Output the character signified by the node at the pointer
, Input a character and store it in the node at the pointer
[ Jump past the matching ] if the node at the pointer is 0
] Jump back to the matching [ if the node at the pointer is nonzero
* if n of these are in front of a > go up the n+1th branch instead

this language has all the properties of brainfuck