package imap

  1. Overview
  2. Docs

CPS Combinator parsers on strings

type 'a t
val run : 'a t -> Buffer.t -> int -> 'a ImapTypes.parse_result
val run_string : 'a t -> string -> 'a option
val bind : 'a t -> ('a -> 'b t) -> 'b t
val alt : 'a t -> 'a t -> 'a t
val altn : 'a t list -> 'a t
val ret : 'a -> 'a t
val fail : _ t
val (>>) : _ t -> 'b t -> 'b t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val app : ('a -> 'b) -> 'a t -> 'b t
val opt : 'a t -> 'a -> 'a t
val some : 'a t -> 'a option t
val rep : 'a t -> 'a list t
val rep_ : _ t -> unit t
val rep1 : 'a t -> 'a list t
val sep : _ t -> 'a t -> 'a list t
val sep1 : _ t -> 'a t -> 'a list t
val delay : ('a -> 'b t) -> 'a -> 'b t
val char : char -> char t
val str : string -> string t
val accum : (char -> bool) -> string t
val crlf : unit t
val quoted_char : char t
val number : Uint32.t t
val number' : int t
val literal : string t
val imap_string : string t
val astring : string t
val atom : string t
val text : string t
val nstring : string option t
val nstring' : string t
val nz_number : Uint32.t t
val nz_number' : int t
val nil : unit t
val eof : unit t
val base64 : string t
val test : 'a t -> string -> 'a
val uint64 : Uint64.t t
val uniqueid : Uint32.t t
val sequence_set : ImapSet.t t
val capability : ImapTypes.capability t
type extension_parser = {
  1. parse : 'a. 'a ImapTypes.extension_kind -> 'a t;
}
val register_parser : extension_parser -> unit
val greeting : ImapTypes.greeting t
val response_data : ImapTypes.response_data t
val response_done : ImapTypes.response_done t
val continue_req : ImapTypes.continue_req t
val cont_req_or_resp_data : ImapTypes.cont_req_or_resp_data t
val response : ImapTypes.response t
OCaml

Innovation. Community. Security.