123456789101112131415161718192021222324252627282930313233(* This file is free software, part of dolmen. See file "LICENSE" for more information *)(** Interface for file locations.
This module defines an interface to store locations in files. These locations
are used by the parsers to specify the locations of all parsed expressions
whenever it is possible.
This interface also requires some exceptions to be defined. These exceptions
make use of locations to specify at which point in the file the parsing went wrong.
*)moduletypeS=sigtypet(** The type of locations. *)exceptionUncaughtoft*exn(** The exception to be raised whenever an unexpected exception is raised during parsing. *)exceptionLexing_erroroft*string(** The exception to be raised when the lexer cannot parse the input. *)exceptionSyntax_erroroft*string(** The exception to be raised whenever a syntax error is encountered by the parser. *)valof_lexbuf:Lexing.lexbuf->t(** Make a position using a lexbuf directly. *)valmk_pos:Lexing.position->Lexing.position->t(** Make a position from two lewing positions. *)end