Module Dose_versioning__SemverNode
this functions follow the semantic versioning specification http://semver.org/
type raw_version= string * string * string * string list * string listRaw version components. Raw versions are not strictly semantic versions, but can also contains characters as 'x' and 'X' . Raw versions must be converted to semantic versions.
type ident=|S of string|N of inttype version={major : int;minor : int;patch : int;pre : ident list;build : string list;}
val parse_raw_version : string -> raw_versionParses a string into a version. Fail if the version can not be parsed
val parse_version : string -> versionParses a string into a version. Fail if the version can not be parsed
val convert : raw_version -> versionRaise Failure if the string cannot be converted
val compose : version -> stringrecompose a version string. For all v:
equal(v,compose(parse_version v)) = true. There may, however, be small syntactic differences betweenvandcompose(parse_version v)
val compare_version : version -> version -> intCompare two versions. Raw versions must be converted to be compared