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
16
17
-- v2.13 CORPUS-IV: .. is right-associative; number coercion in
-- concat chains; precision of integer vs float in concat.
print(1 .. 2)
print(1 .. 2 .. 3)
print(1.5 .. "x")
print(1.0 .. "")
print(10 // 3 .. "|" .. 10 / 5)
local n = 0
local mt = {
  __concat = function(a, b)
    n = n + 1
    return "[" .. n .. "]"
  end,
}
local o = setmetatable({}, mt)
local r = "a" .. "b" .. o .. "c" .. "d"
print(r, n)