Skip to content
Brainfuck interpreter written in Go
Go
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
testing
.gitignore
.travis.yml
LICENSE.txt
README.md
engine.go
engine_test.go
main.go
testutils_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.

You can’t perform that action at this time.