luna-core 2.12.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
-- v2.10 CORPUS: __call + __len.
local callable = setmetatable({}, {__call = function(self, a, b) return a + b end})
print(callable(3, 4))
print(callable(10, 20))

local sized = setmetatable({}, {__len = function() return 42 end})
print(#sized)