Brainf**k (to be abbreviated BF) is an esoteric programing language designed to be difficult to write programs for. BF programs consist of a large continuous block of memory, and a pointer to the memory. There are only 8 accepted inputs in a BF program, they each modify the pointer or the value being pointed at in some way.
BF Command | Action |
< | Move the data pointer left |
> | Move the data pointer right |
+ | increase the value pointed at by 1 |
- | decrease the value pointed at by 1 |
. | print the ASCII value of the currently pointed to data |
, | take one character of input and set the data's value to that |
[ | the beginning marker for a loop |
] | the end marker for a loop |
BF is a Turning complete language. I have written a small interpreter for BF that I present here under the GNU public license. It is not designed for speed or efficiency, just only for clarity and fun.
Download