Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type !'a number_callbacks = [
| `Parse_numbers of 'a int_callback * 'a float_callback
| `Raw_numbers of 'a -> string -> int -> int -> 'a
]
type !'a callbacks = {
on_null : 'a -> 'a;
on_bool : 'a -> bool -> 'a;
on_number : 'a number_callbacks;
on_string : 'a -> string -> int -> int -> 'a;
on_start_map : 'a -> 'a;
on_map_key : 'a -> string -> int -> int -> 'a;
on_end_map : 'a -> 'a;
on_start_array : 'a -> 'a;
on_end_array : 'a -> 'a;
}
val make_parser :
?options:parser_option list ->
'a callbacks ->
'a ->
'a parser
val parse :
?context:'a ->
?ofs:int ->
?len:int ->
?pinned:bool ->
'a parser ->
string ->
unit
val complete_parse : ?context:'a -> ?t:('a -> 'a) -> 'a parser -> 'a
val context : ?t:('a -> 'a) -> 'a parser -> 'a
val make_gen : ?options:gen_option list -> unit -> gen
val gen_get_buf : gen -> string * int * int
val gen_clear : gen -> unit
val gen_string : ?ofs:int -> ?len:int -> gen -> string -> unit
val gen_int : gen -> int -> unit
val gen_int64 : gen -> Int64.t -> unit
val gen_float : gen -> float -> unit
val gen_number : ?ofs:int -> ?len:int -> gen -> string -> unit
val gen_null : gen -> unit
val gen_bool : gen -> bool -> unit
val gen_start_map : gen -> unit
val gen_end_map : gen -> unit
val gen_start_array : gen -> unit
val gen_end_array : gen -> unit