1 unstable release
0.1.0 | Jul 15, 2024 |
---|
#2567 in Parser implementations
24 downloads per month
7KB
179 lines
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,
// }
lib.rs
:
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
Dependencies
~2MB
~43K SLoC