luna-core 2.11.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.11 CORPUS-II: chained string ops.
print(("hello"):upper():sub(1, 3))
print(("  padded  "):match("^%s*(.-)%s*$"))
print(("a,b,c,d"):gsub(",", "-"))
-- method syntax on literals
local s = "hello"
print(s:len(), s:upper(), s:reverse())