package containers
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=438a7bbcb789e116eead04c8a59641f0
sha512=b5551a9ebb9500e14482852c9294c9b4cc3df8153ba64b8e4c4de1dacbd0322ebe4a212316b308c94af562a40099c85b89a8415780cf4e2e0e519870f7342c1b
doc/containers/CCSexp/Make/index.html
Module CCSexp.MakeSource
Functorized operations
This builds a parser and printer for S-expressions represented as in the Sexp argument.
Parameters
Signature
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
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.