mon-core 0.0.3

A robust parser and validator for the Mycel Object Notation (MON) language, designed for fast, efficient, and human-friendly configuration.
Documentation
use mon_core::analyze;

fn main() {
    let mon_data = r#"
        user: {
            name: "John Doe",
            email: "john.doe@example.com"
        }
    "#;

    match analyze(mon_data, "example.mon") {
        Ok(result) => {
            let json_output = result.to_json().unwrap();
            println!("Successfully parsed MON to JSON:\n{json_output}");
        }
        Err(e) => {
            eprintln!("Failed to parse MON: {e:?}");
        }
    }
}