A Brainfuck VM written in Go for funsies
go get github.com/adamveld12/gofuck
Run goconvey
in the project directory and browse to localhost:8080
This also works with go test ./vm
In your own source
import (
"fmt"
"github.com/adamveld12/gofuck/vm"
)
func main(){
input, output := vm.Execute(",>,<[->+<]>.")
input <- 2
input <- 3
fmt.Println(<-output)
}
You can use go install
and use the CLI like so:
$ gofuck <file>
$ gofuck
$ <type or paste BF code here>
And for something pretty cool:
$ gofuck examples/mandelbrot.b
- Git Guildines
- How I Review Code
- My Coding Practices
- My Style Guide
- "Please open github issues" and other words of encouragement
MIT