Crate yaml2lua

Source
Expand description

§yaml2lua

Convert YAML to Lua table

§Example:

use yaml2lua::parse;

let yaml = r#"
string: yaml2lua
int: 420
bool: true
nil: null
"#;

let lua = parse(yaml).unwrap();
// Output:
// {
//   ["string"] = "yaml2lua",
//   ["int"] = 420,
//   ["bool"] = true,
//   ["nil"] = nil,
// }

Made with <3 by Dervex

Functions§

parse
Parse YAML string into a Lua table