Module Logtk.ParseLocation
Location in a file
val mk : string -> int -> int -> int -> int -> t
val mk_pair : string -> (int * int) -> (int * int) -> t
val mk_pos : Stdlib.Lexing.position -> Stdlib.Lexing.position -> t
val eq : t -> t -> bool
val hash : t -> int
val combine : t -> t -> t
Position that spans the two given positions. The file is assumed to be the same in both case, and is chosen from one of the two positions.
val smaller : t -> t -> bool
smaller p1 p2
is true ifp1
is included inp2
, iep1
is a sub-location ofp2
(interval inclusion)
module Infix : sig ... end
include Interfaces.PRINT with type t := t
val pp_opt : t option CCFormat.printer
Lexbuf
val set_file : Stdlib.Lexing.lexbuf -> string -> unit
Change the file name used for positions in this lexbuf
val of_lexbuf : Stdlib.Lexing.lexbuf -> t
Recover a position from a lexbuf