package yamlx

  1. Overview
  2. No Docs
Pure-OCaml YAML 1.2/1.1 parser with a lossless, comment-preserving AST

Install

dune-project
 Dependency

Authors

Maintainers

Sources

yamlx-0.2.0.tbz
sha256=fba05467c9be884657ffea23f10afb46fde22242c7e49bd329c7c21473ff4ed0
sha512=2381310f1ca18e9adbd177840135add9898cada4f52c82d4baaa585aa5b01171710cbf810c9c1ba9a6296167a0b1100e0496f9e384b6a8dd0805b8aecc1da09d

Description

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

Published: 21 Apr 2026

Dependencies (3)

  1. ppx_deriving
  2. ocaml >= "4.14.0"
  3. dune >= "3.20"

Dev Dependencies (4)

  1. odoc with-doc
  2. yaml dev
  3. afl-persistent dev
  4. testo with-test

Used by (1)

  1. atd-yamlx

Conflicts

None