Module Syntax.VersionSource

Sourcetype t = int * int

A syntax version.

It is always assumed that a parser with version (X, Y) can read the output produced by a printer at version (X, Z) for any Z <= Y.

include Conv.S with type t := t
Sourceval decode : t Decoder.t
Sourceval encode : t Encoder.t
Sourceval hash : t -> int
Sourceval equal : t -> t -> bool
Sourceval to_string : t -> string
Sourceval can_read : parser_version:t -> data_version:t -> bool

Whether the parser can read the data or not

Sourceval compare : t -> t -> Stdune.Ordering.t
Sourcemodule Infix : Stdune.Comparator.OPS with type t = t