Module B00_serialk_sexp

S-expression support.

The module Sexp has an s-expression codec and general definitions for working with them. Sexpg generates s-expressions without going through a generic representation. Sexpq queries and updates generic representations with combinators.

Consult a short introduction to s-expressions and the syntax parsed by the codec, the encoding of key-value dictionaries supported by this module and the end-user syntax for addressing and updating s-expressions.

Open this module to use it, this only introduces modules in your scope.

Warning. Serialization functions always assumes all OCaml strings in the data you provide is UTF-8 encoded. This is not checked by the module.

API

module Sexp : sig ... end

S-expression definitions and codec.

module Sexpg : sig ... end

S-expression generation.

module Sexpq : sig ... end

S-expression queries.

Dictionaries

Path & caret syntax

S-expression syntax

S-expressions

Whitespace

Comments

Atoms

Lists

Formal grammar