module Sexp_lib:sig
..end
Windows-aware printer and parser, using ocamllex/ocamlyacc
type'a
or_error =[ `Error of string | `Ok of 'a ]
type'a
sequence =('a -> unit) -> unit
type'a
gen =unit -> 'a option
typet =
[ `Atom of string | `List of t list ]
typesexp =
t
val atom : string -> t
val list : t list -> t
val pp : t CCFormat.printer
val to_string : t -> string
val to_chan : Pervasives.out_channel -> t -> unit
val to_file : string -> t -> unit
type'a
parse_result =[ `End | `Error of string | `Ok of 'a ]
'a
can return `Ok x
when it parsed a value,
or `Error e
when a parse error was encountered, or
`End
if the input was emptymodule Decoder:sig
..end
val parse_string : string -> t or_error
val parse_chan : Pervasives.in_channel -> t or_error
val parse_chan_list : Pervasives.in_channel -> t list or_error
val parse_file : string -> t or_error
val parse_file_list : string -> t list or_error