bf.go
bf.go copied to clipboard
:dizzy_face: brainfuck in golang
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!