package dolmen

  1. Overview
  2. Docs
module type S = Location_intf.S
type t = {
  1. file : string;
  2. start_line : int;
  3. start_column : int;
  4. stop_line : int;
  5. stop_column : int;
}
exception Uncaught of t * exn
exception Lexing_error of t * string
exception Syntax_error of t * string
val hash : t -> int
val eq : t -> t -> bool
val mk : string -> int -> int -> int -> int -> t
val mk_pair : string -> (int * int) -> (int * int) -> t
val mk_pos : Lexing.position -> Lexing.position -> t
val pp : Buffer.t -> t -> unit
val fmt : Format.formatter -> t -> unit
val fmt_hint : Format.formatter -> t -> unit
val combine : t -> t -> t
val combine_list : t list -> t
val smaller : t -> t -> bool
val set_file : Lexing.lexbuf -> string -> unit
val mk_lexbuf : [ `File of string | `Stdin ] -> Lexing.lexbuf
val of_lexbuf : Lexing.lexbuf -> t
OCaml

Innovation. Community. Security.