1Syntaxerr(3) OCaml library Syntaxerr(3)
2
3
4
6 Syntaxerr - Auxiliary type for reporting syntax errors
7
9 Module Syntaxerr
10
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 | Removed_string_set of Location.t
34
35
36
37
38
39 exception Error of error
40
41
42
43
44
45 exception Escape_error
46
47
48
49
50
51 val location_of_error : error -> Location.t
52
53
54
55
56 val ill_formed_ast : Location.t -> string -> 'a
57
58
59
60
61
62
63OCamldoc 2023-07-20 Syntaxerr(3)