luna-core 2.11.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.10 CORPUS: string patterns extended.
print(string.match("abc123def456", "%d+"))
print(string.match("abc123def456", "(%a+)(%d+)"))
for s in string.gmatch("hello world foo bar", "%a+") do io.write(s, " ") end
print()
print(string.find("abcxyzabc", "abc", 2))
print(string.find("hello", "^hel"))
print(string.match("  hello  ", "^%s*(.-)%s*$"))
print(string.gsub("aaa bbb ccc", "%s", "_"))
print(string.rep("abc", 3, "-"))