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
-- v2.10 CORPUS: string concat right-assoc semantics.
print("a" .. "b" .. "c")
print(1 .. 2 .. 3)         -- 123 as string
-- concat with __concat metamethod
local M = {}
M.__concat = function(a, b) return "["..tostring(a)..","..tostring(b).."]" end
local x = setmetatable({name="X"}, M)
M.__tostring = function(t) return t.name end
print(x .. "y")
print("y" .. x)
print(x .. x)