Pure OCaml Yaml 1.2 reader and writer using Bytesrw
at main 941 B view raw
1(*--------------------------------------------------------------------------- 2 Copyright (c) 2025 Anil Madhavapeddy <anil@recoil.org>. All rights reserved. 3 SPDX-License-Identifier: ISC 4 ---------------------------------------------------------------------------*) 5 6(** YAML scalar values with metadata *) 7 8type t 9 10val make : 11 ?anchor:string -> 12 ?tag:string -> 13 ?plain_implicit:bool -> 14 ?quoted_implicit:bool -> 15 ?style:Scalar_style.t -> 16 string -> t 17(** Create a scalar value *) 18 19(** {2 Accessors} *) 20 21val value : t -> string 22val anchor : t -> string option 23val tag : t -> string option 24val style : t -> Scalar_style.t 25val plain_implicit : t -> bool 26val quoted_implicit : t -> bool 27 28(** {2 Modifiers} *) 29 30val with_anchor : string -> t -> t 31val with_tag : string -> t -> t 32val with_style : Scalar_style.t -> t -> t 33 34(** {2 Comparison} *) 35 36val pp : Format.formatter -> t -> unit 37val equal : t -> t -> bool 38val compare : t -> t -> int