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.12 CORPUS-III: nested function upvalue capture.
local function outer()
  local x = 10
  local function inner()
    return x * 2
  end
  x = 20   -- inner sees the update
  return inner()
end
print(outer())   -- 40