val hash : t ‑> int
val of_int : int ‑> t
val of_bool : bool ‑> t
val of_unit : t
of_variant name args
is used to encode algebraic variants
into a S-expr. For instance of_variant "some" [of_int 1]
represents the value Some 1
.
val to_buf : Buffer.t ‑> t ‑> unit
val to_string : t ‑> string
val to_file : string ‑> t ‑> unit
val to_chan : Pervasives.out_channel ‑> t ‑> unit
A parser of 'a
can return Yield x
when it parsed a value,
or Fail e
when a parse error was encountered, or
End
if the input was empty.
module Decoder : sig ... end
Parse a S-expression from the given channel. Can read more data than necessary, so don't use this if you need finer-grained control (e.g. to read something else after the S-exp).