-
Notifications
You must be signed in to change notification settings - Fork 7
/
imap_terms.mli
73 lines (72 loc) · 1.88 KB
/
imap_terms.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
(** Copyright (c) 2008,2009 Anil Madhavapeddy <[email protected]>
** See the COPYING file included in this distribution for licensing details *)
exception Parse_error of string
module Terminal :
sig
module DIGIT :
sig
type t
val of_char : char -> t
val of_string : string -> t
val to_string : t -> string
val to_int : t -> int
val test : char -> bool
val one : Imap_parser.t -> (Imap_parser.t * t) option
end
module SP :
sig
type t
val test : char -> bool
val of_char : char -> t
val to_string : t -> string
val one : Imap_parser.t -> (Imap_parser.t * t) option
end
module DQUOTE :
sig
type t
val test : char -> bool
val of_char : char -> t
val to_string : t -> string
val one : Imap_parser.t -> (Imap_parser.t * t) option
end
module ALPHA :
sig
type t
val test : char -> bool
val of_char : char -> t
val to_string : t -> string
val one : Imap_parser.t -> (Imap_parser.t * t) option
end
module CHAR :
sig
type t
val test : char -> bool
val of_char : char -> t
val to_string : t -> string
val one : Imap_parser.t -> (Imap_parser.t * t) option
end
module CTL :
sig
type t
val test : char -> bool
val of_char : char -> t
val to_string : t -> string
val one : Imap_parser.t -> (Imap_parser.t * t) option
end
module CRLF :
sig
type t
val test : char -> bool
val of_char : char -> t
val to_string : t -> string
val one : Imap_parser.t -> (Imap_parser.t * t) option
end
type t =
CRLF
| CTL of CTL.t
| CHAR of CHAR.t
| ALPHA of ALPHA.t
| DQUOTE
| SP
| DIGIT of DIGIT.t
end