Brainfunk is a simple interpreter, it have simple byte code,
but without dynamic memory allocation. VisualBrainfunk is just
like Brainfunk, but with ncurses based UI and Visualization.
They all have some simple array bounds checking, so normally it won't coredumps.
brainfunk [-h] [-m] [-f file] [-b bitcode] [-c code] [-d]
visualbrainfunk [-h] [-m] [-f file] [-b bitcode] [-c code] [-d] [-t msec]
bf2bitcode [-h] [-m] [-f infile] [-o outfile] [-c code] [-d]
bf2c [-h] [-m] [-f infile] [-b bitcode] [-o outfile] [-c code] [-d]
Use bf2c to convert Brainfuck code to C, to compile it, add libstdbfc.h to compiler's search path (-I\<path>)
+ Increment
- Decrement
> Forward
< Rewind
[ Loop start
] Loop end
. Output
, Input
\ Pop stack
/ Push stack
( If start
) If end
'?? Set hexdecimal
$'?? Push hexdecimal
$+ Increment top of stack
$- Decrement top of stack
$[ while(peek()) {
$] }
$( if(peek()) {
$) }
$. Output from stack
$, Input to stack
~ Fork
! Halt and catch fire!
_ Halt