1Syntaxerr(3)                     OCaml library                    Syntaxerr(3)
2
3
4

NAME

6       Syntaxerr - Auxiliary type for reporting syntax errors
7

Module

9       Module   Syntaxerr
10

Documentation

12       Module Syntaxerr
13        : sig end
14
15
16       Auxiliary type for reporting syntax errors
17
18       Warning: this module is unstable and part of Compiler_libs .
19
20
21
22
23
24       type error =
25        | Unclosed of Location.t * string * Location.t * string
26        | Expecting of Location.t * string
27        | Not_expecting of Location.t * string
28        | Applicative_path of Location.t
29        | Variable_in_scope of Location.t * string
30        | Other of Location.t
31        | Ill_formed_ast of Location.t * string
32        | Invalid_package_type of Location.t * string
33
34
35
36
37
38       exception Error of error
39
40
41
42
43
44       exception Escape_error
45
46
47
48
49
50       val location_of_error : error -> Location.t
51
52
53
54
55       val ill_formed_ast : Location.t -> string -> 'a
56
57
58
59
60
61
62OCamldoc                          2022-02-04                      Syntaxerr(3)
Impressum