Skip to content
🖕 go Brainfuck Interpreter
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
vm
README.md
main.go

README.md

Go Fuck

A Brainfuck VM written in Go for funsies

Setup

go get github.com/adamveld12/gofuck

Testing

Run goconvey in the project directory and browse to localhost:8080 This also works with go test ./vm

How to use

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

Contributing changes

License

MIT

You can’t perform that action at this time.