Skip to content

adamveld12/gofuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🖕 go Brainfuck Interpreter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages