use luau::Lua;
fn main() -> luau::Result<()> {
let lua = Lua::new()?;
let name = String::from("Luau");
let punctuation = lua.create_table()?;
punctuation.set("mark", "!")?;
let greeting: String = lua
.load(luau::chunk! {
return "hello, " .. $name .. $punctuation.mark
})
.set_name("captured_chunk")
.call(())?;
println!("{greeting}");
Ok(())
}