luna-core 2.7.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
11
12
13
14
15
-- v2.2 Phase 5 (DP) deterministic diff fixture: string library.
print(string.upper("hello"))
print(string.lower("WORLD"))
print(string.len("luna"))
print(#"abcdef")
print(string.sub("abcdef", 2, 4))
print(string.rep("ab", 3))
print(string.reverse("hello"))
print(string.byte("A"))
print(string.char(65, 66, 67))
print(string.format("%d %s %f", 42, "test", 3.14))
print(string.format("%5d %-10s|", 7, "left"))
print(string.find("hello world", "wor"))
print(string.match("date: 2026-06-28", "(%d+)-(%d+)-(%d+)"))
print(string.gsub("hello world", "o", "0"))