package containers

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module CCSexp.DecoderSource

Sourcetype t

Decoder

Sourceval of_lexbuf : Lexing.lexbuf -> t
Sourceval 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.

Sourceval to_list : t -> sexp list CCSexp_intf.or_error

Read all the values from this decoder.

  • since 2.8
Sourceval 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.

  • since 3.3
OCaml

Innovation. Community. Security.