package containers
Install
Dune Dependency
Authors
Maintainers
Sources
md5=897b5af970ba48508a2ee001d90e8869
sha512=d4bf1219cc32017d6dee1462c9a6c555e3da833512cdc6e176a92e3a229497734cf6bc0cf2c2abd30183de860858468115c000c719742162e78080074149d317
doc/containers/CCCanonical_sexp/index.html
Module CCCanonical_sexp
Source
Canonical S-expressions
See wikipedia. These S-expressions are binary safe.
Basics
A simple, structural representation of S-expressions. Compatible with CCSexp
.
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 iter of expressions to a file.
Pretty-printer nice on human eyes (including indentation).
Raw, direct printing as compact as possible.
Parsing
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.