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

NAME

6       Lexer - no description
7

Module

9       Module   Lexer
10

Documentation

12       Module Lexer
13        : sig end
14
15
16
17
18
19
20
21
22       val init : unit -> unit
23
24
25
26
27       val token : Lexing.lexbuf -> Parser.token
28
29
30
31
32       val skip_hash_bang : Lexing.lexbuf -> unit
33
34
35
36       type error =
37        | Illegal_character of char
38        | Illegal_escape of string
39        | Unterminated_comment of Location.t
40        | Unterminated_string
41        | Unterminated_string_in_comment of Location.t * Location.t
42        | Keyword_as_label of string
43        | Invalid_literal of string
44        | Invalid_directive of string * string option
45
46
47
48
49
50       exception Error of error * Location.t
51
52
53
54
55
56       val report_error : Format.formatter -> error -> unit
57
58
59
60
61       val in_comment : unit -> bool
62
63
64
65
66       val in_string : unit -> bool
67
68
69
70
71       val print_warnings : bool Pervasives.ref
72
73
74
75
76       val handle_docstrings : bool Pervasives.ref
77
78
79
80
81       val comments : unit -> (string * Location.t) list
82
83
84
85
86       val token_with_comments : Lexing.lexbuf -> Parser.token
87
88
89
90
91       val   set_preprocessor   :   (unit   ->  unit)  ->  ((Lexing.lexbuf  ->
92       Parser.token) -> Lexing.lexbuf -> Parser.token) -> unit
93
94
95
96
97
98
99OCamldoc                          2019-02-02                          Lexer(3)
Impressum