Module Melange_compiler_libs.Syntaxerr

Auxiliary type for reporting syntax errors

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

type error =
  1. | Unclosed(Location.t, string, Location.t, string)
  2. | Expecting(Location.t, string)
  3. | Not_expecting(Location.t, string)
  4. | Applicative_path(Location.t)
  5. | Variable_in_scope(Location.t, string)
  6. | Other(Location.t)
  7. | Ill_formed_ast(Location.t, string)
  8. | Invalid_package_type(Location.t, string)
  9. | Removed_string_set(Location.t)
;
exception Error(error);
exception Escape_error;
let location_of_error: error => Location.t;
let ill_formed_ast: Location.t => string => 'a;