-
Notifications
You must be signed in to change notification settings - Fork 1
/
ReadPattern.mli
67 lines (67 loc) · 2.39 KB
/
ReadPattern.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
module UTF8Set :
sig
type elt = CamomileLibrary.UTF8.t
type t = Set.Make(CamomileLibrary.UTF8).t
val empty : t
val is_empty : t -> bool
val mem : elt -> t -> bool
val add : elt -> t -> t
val singleton : elt -> t
val remove : elt -> t -> t
val union : t -> t -> t
val inter : t -> t -> t
val diff : t -> t -> t
val compare : t -> t -> int
val equal : t -> t -> bool
val subset : t -> t -> bool
val iter : (elt -> unit) -> t -> unit
val fold : (elt -> 'a -> 'a) -> t -> 'a -> 'a
val for_all : (elt -> bool) -> t -> bool
val exists : (elt -> bool) -> t -> bool
val filter : (elt -> bool) -> t -> t
val partition : (elt -> bool) -> t -> t * t
val cardinal : t -> int
val elements : t -> elt list
val min_elt : t -> elt
val max_elt : t -> elt
val choose : t -> elt
val split : elt -> t -> t * bool * t
end
type utf8Set = UTF8Set.t
type uchar = CamomileLibrary.UChar.t
type ustring = CamomileLibrary.UTF8.t
type parseEnd = (Pattern.pattern, string) Core.Result.t
val parseEnd_of_sexp__ :
Sexplib.Sexp.t -> (Pattern.pattern, string) Core.Result.t
val parseEnd_of_sexp : Sexplib.Sexp.t -> parseEnd
val sexp_of_parseEnd : parseEnd -> Sexplib.Sexp.t
type parseF =
ParseWith of (Common.patIndex * uchar -> parseF) * (unit -> parseEnd)
| ParseError of string
val parseF_of_sexp__ : Sexplib.Sexp.t -> parseF
val parseF_of_sexp : Sexplib.Sexp.t -> parseF
val sexp_of_parseF : parseF -> Sexplib.Sexp.t
val see :
(Pattern.pattern, CamomileLibrary.UTF8.t) Core.Result.t ->
CamomileLibrary.UTF8.t
val u : char -> CamomileLibrary.UChar.t
val e : CamomileLibrary.UChar.t -> CamomileLibrary.UTF8.t
val ee : CamomileLibrary.UChar.t list -> CamomileLibrary.UTF8.t
val pr : ('a, out_channel, unit) format -> 'a
val spr : ('a, unit, string) format -> 'a
val iterParse : parseF -> ustring -> parseEnd
val toUSet : char list -> CamomileLibrary.USet.t
val specials : CamomileLibrary.USet.t
val digits : CamomileLibrary.USet.t
val allowedClasses : UTF8Set.t
val unexpected : CamomileLibrary.UChar.t -> parseF
type parseEnv = {
parentGroupIndex : Common.groupIndex;
nextGroupIndexRef : Common.groupIndex ref;
popCont : (Pattern.pattern -> parseF) option;
}
val pushBranch :
parseEnv -> Pattern.branchPat list -> Common.patIndex * uchar -> parseF
val initialParser : unit -> parseF
val parseRegex : ustring -> parseEnd
val ick : ustring -> parseEnd