luna-core 2.13.0

Pure-Rust Lua runtime (interpreter only, zero third-party dependencies). The JIT-equipped variant lives in the `luna-jit` crate.
Documentation
1
2
3
4
5
6
7
8
9
-- v2.10 CORPUS: load + compile.
local f, err = load("return 40 + 2")
print(err, f())
local g = load("return function(x) return x * 3 end")
print(g()(4))  -- 12

-- load with parse error
local bad = load("this is not lua")
print(bad ~= nil)  -- may be nil OR function-that-errors