package lambdapi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=ef0c364e355c6c44327e62e79c484b1808d6e144bd6b899d39f0c9c3a351d5f2
sha512=b8b01a1203ea75ae79c59f67e787097f3df7603fc814776fbdd867625165dd00c70918d6edbfdc05c3a63fe7686f95e0523ad106f9da63234a2db33c4d42837e
doc/lambdapi.lplib/Lplib/RangeMap/Make/Range/index.html
Module Make.Range
Source
val make_point : int -> int -> point
make_point ln col
creates a point with line ln
and column col
.
make_interval s e
creates an interval with start s
and end e
. Requires the interval to be well defined (e.g with start < finish) or it will assert
val line : point -> int
val column : point -> int
Comparison over intervals.
An interval is considered "smaller" than another if its ending point is before the starting point of the other.
Intervals need to be well defined (i.e returned by make_interval). Two intervals are considered equal if one is included in the other. In any other case, overlapping intervals can't be compared and will throw an error.
val point_to_string : point -> string
val interval_to_string : t -> string
translate i ds df
returns the interval i
with its starting point translated by ds
and finishing point translated by df
.
Will throw an error if the resulting interval is not well-defined (see make_interval). Only translates column-wise, does not modify the line coordinates of the extremity points.