| 1 |
(** A view of the top-level of a regex. This type is unstable and may change *) |
| 2 |
|
| 3 |
module Cset : sig |
| 4 |
type t = Cset.t |
| 5 |
|
| 6 |
module Range : sig |
| 7 |
type t |
| 8 |
|
| 9 |
val first : t -> Char.t |
| 10 |
val last : t -> Char.t |
| 11 |
end |
| 12 |
|
| 13 |
val view : t -> Range.t list |
| 14 |
end |
| 15 |
|
| 16 |
module Sem : sig |
| 17 |
type t = |
| 18 |
[ `Longest |
| 19 |
| `Shortest |
| 20 |
| `First |
| 21 |
] |
| 22 |
end |
| 23 |
|
| 24 |
module Rep_kind : sig |
| 25 |
type t = |
| 26 |
[ `Greedy |
| 27 |
| `Non_greedy |
| 28 |
] |
| 29 |
end |
| 30 |
|
| 31 |
type t = |
| 32 |
| Set of Cset.t |
| 33 |
| Sequence of Ast.t list |
| 34 |
| Alternative of Ast.t list |
| 35 |
| Repeat of Ast.t * int * int option |
| 36 |
| Beg_of_line |
| 37 |
| End_of_line |
| 38 |
| Beg_of_word |
| 39 |
| End_of_word |
| 40 |
| Not_bound |
| 41 |
| Beg_of_str |
| 42 |
| End_of_str |
| 43 |
| Last_end_of_line |
| 44 |
| Start |
| 45 |
| Stop |
| 46 |
| Sem of Sem.t * Ast.t |
| 47 |
| Sem_greedy of Rep_kind.t * Ast.t |
| 48 |
| Group of string option * Ast.t |
| 49 |
| No_group of Ast.t |
| 50 |
| Nest of Ast.t |
| 51 |
| Case of Ast.t |
| 52 |
| No_case of Ast.t |
| 53 |
| Intersection of Ast.t list |
| 54 |
| Complement of Ast.t list |
| 55 |
| Difference of Ast.t * Ast.t |
| 56 |
| Pmark of Pmark.t * Ast.t |
| 57 |
|
| 58 |
val view : Ast.t -> t |