Simple forth interpreter written in go
You can use fifth as a repl or a library.
go get github.com/h8gi/fifth
./fifth
package main
import (
fifth "github.com/h8gi/fifth/lib"
)
func main() {
i := fifth.NewInterpreter()
i.SetReader(os.Stdin)
i.SetWriter(os.Stdout)
i.Repl()
}
see primitives.go
- Get values from the interpreter
- Send values to the interpreter
- Eval text