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
-- v2.13 CORPUS-IV: utf8.charpattern tokenizes multibyte text.
local s = "aé中b"
local parts = {}
for c in s:gmatch(utf8.charpattern) do parts[#parts + 1] = c end
print(#parts)
for _, c in ipairs(parts) do io.write("[", c, "]") end
print()
print(utf8.charpattern == "[\0-\x7F\xC2-\xFD][\x80-\xBF]*")