pub fn parse(input: &str) -> Result<Value>Expand description
Parse a Crous text document into a Value.
use crous_core::text::parse;
use crous_core::Value;
let v = parse(r#"{ name: "Alice"; age: 30; }"#).unwrap();
assert_eq!(
v,
Value::Object(vec![
("name".into(), Value::Str("Alice".into())),
("age".into(), Value::UInt(30)),
])
);