luaur 0.1.0

Luau (Roblox's typed Lua) implemented in Rust: compiler, VM, and type checker. Umbrella crate.
Documentation

luaur

A faithful Rust translation of Luau — Roblox's typed Lua. This umbrella crate re-exports the individual layers (lexer/parser/AST, bytecode, compiler, register VM, type checker, config and require resolution) and provides three thin convenience helpers — [compile], [eval], and [check] — for the common "compile a string / run a string / type-check a string" cases.

For finer-grained control depend on the sub-crates directly; they are all re-exported here as modules.

luaur::eval("assert(1 + 1 == 2)").unwrap();
let bytecode = luaur::compile("return 2 + 2").unwrap();
assert!(!bytecode.is_empty());
luaur::check("local x: number = 1").unwrap();