😵 brainfuck in golang
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.
test
.editorconfig
.gitignore
LICENSE
README.md
bf.go

README.md

bf.go

idk how to write golang or an interpreter. basically a port of @evanhahn's brainfuck-interpreter.

$ go run bf.go test/hello.bf
Hello World!

reads input from stdin

$ go run bf.go test/cat.bf < test/hello.bf
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

you can also compile it first

$ go build bf.go
$ ./bf test/hello.bf
Hello World!