luna-core 2.15.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.15 P2.4 utf8: charpattern iteration.
local s = "abc"
local pieces = {}
for p in string.gmatch(s, utf8.charpattern) do
  pieces[#pieces+1] = p
end
print(table.concat(pieces, "|"))
print(#pieces)