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
-- v2.13 CORPUS-IV: tostring type prefixes (address stripped).
print(tostring(print):match("^function: ") ~= nil)
print(tostring({}):match("^table: ") ~= nil)
print(tostring(coroutine.create(function() end)):match("^thread: ") ~= nil)
local f1, f2 = print, print
print(tostring(f1) == tostring(f2))
print(tostring({}) ~= tostring({}))