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
-- v2.12 CORPUS-III: gsub backref + repetition.
print(string.gsub("abcabc", "(a)(b)(c)", "%3%2%1"))
print(string.gsub("hello world", "(%w+) (%w+)", "%2 %1"))
print(string.gsub("aaaa", "aa", "<X>"))
-- limit=0 means no replacement
print(string.gsub("aaa", "a", "b", 0))