Skip to content

About

No description, website, or topics provided.

Resources

Security policy

Stars

15 stars

Watchers

2 watching

Forks

Repository files navigation

oxc-yaml-parser

oxc-yaml-parser parses YAML 1.2 into a comment-preserving, span-faithful typed AST, designed for building formatters.

How it parses, and why, is in AGENTS.md.

Example

use oxc_yaml_parser::{Allocator, Parser};

let allocator = Allocator::default();
let parser = Parser::new(&allocator, "key: value # comment");
let root = parser.parse().unwrap();
println!("{root:#?}");

More examples are available in examples.

License

MIT

The scanner derives from libyaml (MIT) by way of saphyr (MIT); their copyright notices are included in LICENSE.

Our sponsors

About

No description, website, or topics provided.

Resources

Security policy

Stars

15 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages