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
10
-- v2.13 CORPUS-IV: gmatch multi-captures + empty-match advance.
for k, v in string.gmatch("a=1,b=2,c=3", "(%w+)=(%w+)") do
  io.write(k, ":", v, " ")
end
print()
local n = 0
for _ in string.gmatch("abc", "x*") do n = n + 1 end
print(n)
for w in string.gmatch("  two  words ", "%S+") do io.write("[", w, "]") end
print()