Module Gramlib.Ploc
exception
Exc of Loc.t * exn
Ploc.Exc loc e
is an encapsulation of the exceptione
with the input locationloc
. To be used to specify a location for an error. This exception must not be raised byraise
but rather byPloc.raise
(see below), to prevent the risk of several encapsulations ofPloc.Exc
.
val raise : Loc.t -> exn -> 'a
Ploc.raise loc e
, ife
is already the exceptionPloc.Exc
, re-raise it (ignoring the new locationloc
), else raise the exceptionPloc.Exc loc e
.
val make_unlined : (int * int) -> Loc.t
Ploc.make_unlined
is likePloc.make
except that the line number is not provided (to be used e.g. when the line number is unknown.
val dummy : Loc.t
Ploc.dummy
is a dummy location, used in situations when location has no meaning.