Module Syntaxerr
module Syntaxerr: sig .. end
Auxiliary type for reporting syntax errors
Warning: this module is unstable and part of compiler-libs.
type invalid_package_type =
|
| Parameterized_types
|
|
| Constrained_types
|
|
| Private_types
|
|
| Not_with_type
|
|
| Neither_identifier_nor_with_type
|
type error =
|
| Unclosed of
|
|
| Expecting of
|
|
| Not_expecting of
|
|
| Applicative_path of
|
|
| Variable_in_scope of
|
|
| Other of
|
|
| Ill_formed_ast of
|
|
| Invalid_package_type of
|
|
| Removed_string_set of
|
exception Error of error
exception Escape_error
val location_of_error : error -> Location.t
val ill_formed_ast : Location.t -> string -> 'a
© 1995-2024 INRIA.
https://ocaml.org/manual/5.3/api/compilerlibref/Syntaxerr.html