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
-- v2.11 CORPUS-II: __index chain depth.
local function chain(depth)
  local prev = {}
  for i = 1, depth do
    prev = setmetatable({}, {__index = prev})
  end
  prev.found = "yes"
  return prev
end
local top = setmetatable({}, {__index = chain(20)})
print(top.found)   -- "yes"
print(top.other)   -- nil