A simple interpreter for the brainfuck language written in Go.
Also runs programs written in the FuckFuck
dialect because lol. Source files ending in
.ff are assumed to be FuckFuck,
everything else is assumed to be vanilla Brainfuck.
$ cat examples/hello-world.bf ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. $ go build $ brainfuck examples/hello-world.bf Hello World!
Inputting data (with
,) is not very user friendly yet. Input is buffered so
the user has to hit the enter key to send the data to the program. Fixing
this on Linux is easy enough but Windows is a different story.