Lua 言語について調べてたら,たまたま Go 言語による VM とコンパイラの実装を見つけた。 milochristiansen/lua: A Lua 5.3 VM and compiler written in Go. 面白そうなのでちょろんと試してみた。 みんな大好き Hello World まずは,みんな大好き Hello World から。 package main import ( "fmt" "os" "strings" "github.com/milochristiansen/lua" "github.com/milochristiansen/lua/lmodbase" ) func main() { l := lua.NewState() err := l.Protect(func() { l.Push(lmodbase.Open) l.Call(0, 0) }) if
![Go 言語による Lua 実装を試してみた](https://cdn-ak-scissors.b.st-hatena.com/image/square/d10addccef9c7773072a5ec748deb629e26bc669/height=288;version=1;width=512/https%3A%2F%2Ftext.baldanders.info%2Fimages%2Fattention%2Fgo-logo_blue.png)