yaml_parser 0.3.0

Semi-tolerant YAML concrete syntax tree parser.
Documentation
1
2
3
4
5
6
7
8
9
use std::{env, fs};

fn main() {
    let file = fs::read_to_string(env::args().nth(1).unwrap()).unwrap();
    match yaml_parser::parse(&file) {
        Ok(tree) => println!("{tree:#?}"),
        Err(err) => eprintln!("{err}"),
    };
}