module Version : sig ... endmodule Error : sig ... endmodule Warning : sig ... endval create : ?experimental:bool -> name:string -> desc:string -> (Version.t * [ `Since of Version.t ]) list -> tcreate ~name ~desc supported_versions defines a new syntax. supported_version is the list of all the supported versions paired with the versions of the dune lang in which they where introduced. desc is used to describe what this syntax represent in error messages.
val name : t -> stringReturn the name of the syntax.
val check_supported : dune_lang_ver:Version.t -> t -> (Stdune.Loc.t * Version.t) -> unitCheck that the given version is supported and raise otherwise.
S-expression parsing
High-level functions
val deleted_in : ?extra_info:string -> t -> Version.t -> (unit, _) Decoder.parserIndicate the field/constructor being parsed was deleted in the given version
val deprecated_in : ?extra_info:string -> t -> Version.t -> (unit, _) Decoder.parserIndicate the field/constructor being parsed was deprecated in the given version
val renamed_in : t -> Version.t -> to_:string -> (unit, _) Decoder.parserIndicate the field/constructor being parsed was renamed in the given version
val since : ?fatal:bool -> t -> Version.t -> (unit, _) Decoder.parserIndicate the field/constructor being parsed was introduced in the given version. When fatal is false, simply emit a warning instead of error. fatal defaults to true.
Low-level functions
module Key : sig ... endval set : t -> Key.t -> ('a, 'k) Decoder.parser -> ('a, 'k) Decoder.parserval key : t -> Key.t Stdune.Univ_map.Key.tval get_exn : t -> (Version.t, 'k) Decoder.parserval experimental : t -> bool