containers
Make.Decoder
containers.bencode
containers.cbor
containers.codegen
containers.monomorphic
containers.pp
containers.scc
containers.top
containers.unix
type t
Decoder
val of_lexbuf : Lexing.lexbuf -> t
val next : t -> sexp parse_result
Parse the next S-expression or return an error if the input isn't long enough or isn't a proper S-expression.
val to_list : t -> sexp list CCSexp_intf.or_error
Read all the values from this decoder.
val last_loc : t -> loc option
Last location for the decoder. In particular, after calling next, this gives the location of the last token used in the result, which is useful in case of error.
next