package rdf

  1. Overview
  2. Docs

Locations.

type loc = {
  1. loc_start : Stdlib.Lexing.position;
  2. loc_end : Stdlib.Lexing.position;
}
val dummy_loc : loc

Dummy location.

val source_info_string : string -> int -> int -> loc

From the given utf8 string and start and stop characters, return the corresponding location.

val source_info_file : string -> int -> int -> loc

From the given file and start and stop characters, read the content of the file as utf8, and return the corresponding location.

val string_of_loc : loc -> string

Return a string representing the given location.

val pp : Stdlib.Format.formatter -> loc -> unit

Pretty-print the given location.

OCaml

Innovation. Community. Security.