luna-core 2.16.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.15 P2.4: nested closures capturing multiple levels.
local function outer(a)
  return function(b)
    return function(c)
      return function(d)
        return a + b + c + d
      end
    end
  end
end
print(outer(1)(2)(3)(4))
print(outer(10)(20)(30)(40))