lua.go
A TOY Lua 5.3 implementation written in Go (WORK IN PROGRESS).
Build & Test
(Go1.13+ required)
cd .
git clone https://github.com/zxh0/lua.go.git
cd lua.go
export GO111MODULE=on
go build github.com/zxh0/lua.go/cmd/lua
./lua test/hello_world.lua
Links
- Lua 5.3 Reference Manual
- Lua 5.3 Source Code
- Lua 5.3 Test suites
- Lua 5.3 Bytecode Reference
- A No-Frills Introduction to Lua 5.1 VM Instructions
- The Evolution of Lua
- The Implementation of Lua 5.0
- Revisiting Coroutines
- Syntax-Diagrams for Lua 5.0
- Lua-Source-Internal
- Linear Scan Register Allocation
- Programming in Lua
- https://www.0value.com/implementing-lua-coroutines-in-go
- Optimizing Lua VM Bytecode using Global Dataflow Analysis