package containers
Install
Dune Dependency
Authors
Maintainers
Sources
md5=d84e09c5d0abc501aa17cd502e31a038
sha512=8b832f4ada6035e80d81be0cfb7bdffb695ec67d465ed6097a144019e2b8a8f909095e78019c3da2d8181cc3cd730cd48f7519e87d3162442562103b7f36aabb
doc/containers.sexp/CCSexp/index.html
Module CCSexp
Source
Handling S-expressions
Basics
A simple, structural representation of S-expressions.
include S with type t := t
Re-exports
Constructors
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
.
Printing
Print the given sequence of expressions to a file.
Pretty-printer nice on human eyes (including indentation).
Raw, direct printing as compact as possible.
Parsing
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.
Parse a string.
Parse a string into a list of S-exprs.
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).
Parse a channel into a generator of S-expressions.
Open the file and read a S-exp from it.
Open the file and read a S-exp from it.