Kinako is small VM written in Go.
(Picture licensed under CC BY-SA 3.0 by wikipedia)
Requires Go.
$ go get -u github.com/mattn/kinako
Embedding the interpreter into your own program:
var env = vm.NewEnv()
env.Define("foo", 1)
val, err := env.Execute(`foo + 3`)
if err != nil {
panic(err)
}
fmt.Println(val)
MIT
Yasuhiro Matsumoto (a.k.a mattn)