module type S = Location_intf.S
An anstract module type for providing locations. Used
as argumentby much of the functors provided in Dolmen.
This module (ParseLocation
) implements this specification.
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.