| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
module type S = sig |
| 14 |
type keyword_state |
| 15 |
type te |
| 16 |
type 'c pattern |
| 17 |
val tok_pattern_eq : 'a pattern -> 'b pattern -> ('a, 'b) Util.eq option |
| 18 |
val tok_pattern_exact : _ pattern -> bool |
| 19 |
val tok_pattern_strings : keyword_state -> 'c pattern -> string * string option |
| 20 |
|
| 21 |
|
| 22 |
val tok_func : ?loc:Loc.t -> (unit,char) Stream.t -> (keyword_state,te) LStream.t |
| 23 |
|
| 24 |
val tok_match : 'c pattern -> te -> 'c option |
| 25 |
val tok_text : 'c pattern -> string |
| 26 |
|
| 27 |
|
| 28 |
module State : sig |
| 29 |
type t |
| 30 |
val init : unit -> t |
| 31 |
val set : t -> unit |
| 32 |
val get : unit -> t |
| 33 |
val drop : unit -> unit |
| 34 |
val get_comments : t -> ((int * int) * string) list |
| 35 |
end |
| 36 |
|
| 37 |
end |