BrainCursion

From Esolang

Jump to: navigation, search

BrainCursion is a variant of the brainfuck programming language in which the [] while loops are replaced with recursive loops. It was sketched up in a few seconds by Seven Inch Bread, with no intention of being implemented.


[edit] Commands

[ and ] are both removed from the language, with the following commmands added

( - marks the beginning of a loop
) - marks the end
% - return back to the last ( command 
   (if there is none, then restart at the beginning of the program)
@ - move to the next ) command 
   (if there is none, the program terminates)
# - If the value of the current cell is non-zero, skip the next
    command

[edit] Computational class

You can emulate a BF while loop like so:

(#@SomeCode%)

So through the mighty power of isomorphism, BrainCursion is Turing complete

Personal tools