Brainflop

From Esolang
Jump to navigation Jump to search

Brainflop is a programming language by user:InfiniteDonuts. It is Turing-complete, minimalist, and inspired by HighFive.

Commands

brainflop has 7 commands:

+ increment the memory cell under the pointer
- decrement the memory cell under the pointer
< move the memory pointer left
> move the memory pointer right
* If the memory cell is 0, get input. Else, print the cell's corresponding ASCII character.
/ If the cell is 0, skip the next command. Else, move the pointer 1 space to the right. Move the program pointer the number of spaces indicated by the cell (negative goes backwards, positive goes forwards).
# Set the current cell to 0.

Example Programs

(a Hello World hasn't been written yet)

Cat

>----<#**/

External Resources

brainflop official site with interpreter