luna-core 2.12.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.10 CORPUS: string library conversion.
print(tostring(42))
print(tostring(nil))
print(tostring(true))
print(tostring(false))
print(tonumber("42"))
print(tonumber("42.5"))
print(tonumber("hello"))  -- nil
print(tonumber("0x1a"))   -- 26
print(tonumber("1e3"))    -- 1000
print(tonumber("42", 8))  -- 34 (octal)
print(tonumber("ff", 16)) -- 255