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
-- v2.12 CORPUS-III: string.sub byte-level semantics.
local s = "café"
print(#s)      -- byte-len (5 for 'c' 'a' 'f' 'é'=2bytes)
print(string.sub(s, 1, 3))   -- first 3 bytes: caf
print(string.sub(s, -2))      -- last 2 bytes: é