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
11
12
13
14
15
-- v2.10 CORPUS: multi-assignment semantics.
local a, b = 1, 2
a, b = b, a
print(a, b)  -- 2 1

-- rhs evaluated before lhs write
local x = 10
local y = 20
x, y = y + 1, x + 1
print(x, y)  -- 21 11 (both rhs from OLD x, y)

-- table field swap
local t = {1, 2}
t[1], t[2] = t[2], t[1]
print(t[1], t[2])