jon.recoil.org

Module Ocaml_parsing.Syntaxerr

Auxiliary type for reporting syntax errors

Warning: this module is unstable and part of compiler-libs.

type invalid_package_type =
  1. | Parameterized_types
  2. | Constrained_types
  3. | Private_types
  4. | Not_with_type
  5. | Neither_identifier_nor_with_type
  6. | Misplaced_attribute
type error =
  1. | Unclosed of Ocaml_parsing.Location.t * string * Ocaml_parsing.Location.t * string
  2. | Expecting of Ocaml_parsing.Location.t * string
  3. | Not_expecting of Ocaml_parsing.Location.t * string
  4. | Applicative_path of Ocaml_parsing.Location.t
  5. | Variable_in_scope of Ocaml_parsing.Location.t * string
  6. | Other of Ocaml_parsing.Location.t
  7. | Ill_formed_ast of Ocaml_parsing.Location.t * string
  8. | Invalid_package_type of Ocaml_parsing.Location.t * Ocaml_parsing.Syntaxerr.invalid_package_type
  9. | Removed_string_set of Ocaml_parsing.Location.t
  10. | Missing_unboxed_literal_suffix of Ocaml_parsing.Location.t
  11. | Malformed_instance_identifier of Ocaml_parsing.Location.t
  12. | Quotation_reserved of Ocaml_parsing.Location.t * string
  13. | Unspliceable of Ocaml_parsing.Location.t
  14. | Let_mutable_not_allowed_at_structure_level of Ocaml_parsing.Location.t
  15. | Let_mutable_not_allowed_in_class_definition of Ocaml_parsing.Location.t
  16. | Let_mutable_not_allowed_with_function_bindings of Ocaml_parsing.Location.t
  17. | Block_access_bad_paren of Ocaml_parsing.Location.t
exception Escape_error
val ill_formed_ast : Ocaml_parsing.Location.t -> string -> 'a