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.13 CORPUS-IV: shared string metatable — method syntax on
-- string values routes through getmetatable("").__index == string.
local mt = getmetatable("")
print(type(mt), mt.__index == string)
print(("hello"):upper())
print(("a,b,c"):find(",", 1, true))
local s = "world"
print(s:len(), s:sub(2, 3))
print(getmetatable("x") == getmetatable("yy"))