package containers
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=52eeff91ce42b52305e6aaa8a58b88ce8f0a5a984199e59ca7e2fd9ebabe61d7
sha512=dc7337e6cbc9850542c7c9228d3bcb4e4add57a55e2a2992f21fb4761b3e10a68ef1d57ca37a7f5b303fc875fe3df5ecb69dbf2930bfcd1561ce03f7ae83e24b
doc/containers/CCSexp/index.html
Module CCSexpSource
Handling S-expressions
Basics
A simple, structural representation of S-expressions.
include S with type t := t
include CCSexp_intf.S0 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.
Locations for the S-expressions.
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.