The Go Eso Compiler is a package that provides functionality to compile programs written in Eso programming languages.
To use this package, you need to have Go installed.
Go get the package:
go get github.com/skantay/brainfuck
Here's a simple example demonstrating how to use the package:
package main
import (
"fmt"
"log"
"os"
"github.com/skantay/go-eso-compiler"
)
func main() {
file, err := os.Open("program.bf")
if err != nil {
log.Fatal(err)
}
defer file.Close()
output, err := brainfuck.Brainfuck(file)
if err != nil {
log.Fatal(err)
}
fmt.Println("Compiled output:", output)
}
Contributions are welcome! Feel free to open issues or submit pull requests.