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
19
20
21
22       type error =
23        | Unclosed of Location.t * string * Location.t * string
24        | Expecting of Location.t * string
25        | Not_expecting of Location.t * string
26        | Applicative_path of Location.t
27        | Variable_in_scope of Location.t * string
28        | Other of Location.t
29        | Ill_formed_ast of Location.t * string
30        | Invalid_package_type of Location.t * string
31
32
33
34
35
36       exception Error of error
37
38
39
40
41
42       exception Escape_error
43
44
45
46
47
48       val report_error : Format.formatter -> error -> unit
49
50       Deprecated.  Use Location.error_of_exn , Location.report_error .
51
52
53
54       val location_of_error : error -> Location.t
55
56
57
58
59       val ill_formed_ast : Location.t -> string -> 'a
60
61
62
63
64
65
66OCamldoc                          2019-02-02                      Syntaxerr(3)
Impressum