yaml2lua
Convert YAML to Lua table
Example:
use parse;
let yaml = r#"
string: yaml2lua
int: 420
bool: true
array:
- abc
- 123
"#;
let lua = parse.unwrap;
// Output:
// {
// ["string"] = "yaml2lua",
// ["int"] = 420,
// ["bool"] = true,
// ["array"] = {
// "abc",
// 123,
// },
// }
Notes
- Mappings only support
String,NumberandBoolkeys - Tagged values are not supported yet