package lambdapi
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=2c251021b6fac40c05282ca183902da5b1008e69d9179d7a9543905c2c21a28a
sha512=69535f92766e6fedc2675fc214f0fb699bde2a06aa91d338c93c99756235a293cf16776f6328973dda07cf2ad402e58fe3104a08f1a896990c1778b42f7f9fcf
doc/lambdapi.lplib/Lplib/Range/index.html
Module Lplib.Range
Source
include Range_intf.S
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
Type for the position of a cursor relative to an interval.
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.
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.