yamlxversion Documentation on ocaml.org

Pure-OCaml YAML 1.2 parser with a lossless, comment-preserving AST

YAMLx is a pure-OCaml YAML 1.2 library. It passes all 371 tests from the yaml-test-suite and has no C bindings or external runtime dependencies. The parsed node tree preserves scalar styles, flow vs. block collection style, tags, anchors, source positions, and comments. A pretty-printer can round-trip the AST back to YAML. A typed-value resolver applies the YAML 1.2 JSON schema and returns Null / Bool / Int / Float / String / Seq / Map values. Structured errors carry line, column, and byte-offset information.

YAMLx is currently released under the AGPL. A commercial license and a path to a fully permissive ISC license are available — see FUNDING.md.

Tags yaml parser serialization
AuthorMartin Jambon <martin@mjambon.com>
LicenseAGPL-3.0-only
Published
Homepagehttps://github.com/mjambon/yamlx
Issue Trackerhttps://github.com/mjambon/yamlx/issues
MaintainerMartin Jambon <martin@mjambon.com>
Dependencies
Source [http] https://github.com/mjambon/yamlx/releases/download/0.1.0/yamlx-0.1.0.tbz
sha256=2216abdfb47575414c5d280d18426ee73eb2b0531cae0d4777be2134b95eb701
sha512=2b6ec7b88c54ab1686a5f875e2a38769b5be01a616152fab9d9f9aa9d2ce38f175b7693d0ed8826b7e0cd1f0027f0fb28c16b89fdbf938bb82461e917f22b860
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/yamlx/yamlx.0.1.0/opam
No package is dependent