Brainfuck interpreter written in Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
testing
.gitignore
.travis.yml
LICENSE.txt
README.md
engine.go
engine_test.go
main.go
testutils_post1.9_test.go
testutils_pre1.9_test.go

README.md

Brainfuck Interpreter

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.

Running

$ cat examples/hello-world.bf
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
$ go build
$ brainfuck examples/hello-world.bf
Hello World!

Input caveat

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.