package dolmen

  1. Overview
  2. Docs
type t

The type of locations.

exception Uncaught of t * exn

The exception to be raised whenever an unexpected exception is raised during parsing.

exception Lexing_error of t * string

The exception to be raised when the lexer cannot parse the input.

exception Syntax_error of t * string

The exception to be raised whenever a syntax error is encountered by the parser.

val of_lexbuf : Lexing.lexbuf -> t

Make a position using a lexbuf directly.

val mk_pos : Lexing.position -> Lexing.position -> t

Make a position from two lewing positions.

OCaml

Innovation. Community. Security.