← All repos

sexplib

Automated S-expression conversion

Browse cluster: OCaml incremental computation and PPX tooling
184commits
13contributors
5languages

Tech stack & purpose

Sexplib is an OCaml library that provides functionality for parsing and pretty-printing s-expressions, which are nested structures of atoms and lists used for serialization. The library enables developers to convert OCaml values to and from human-readable s-expression format, and is often used alongside ppx_sexp_conv, a syntax extension that automatically generates conversion code from type definitions. Sexplib includes features for extracting and replacing sub-expressions, handling multiple comment styles, and performing I/O with optional location annotations for precise error reporting during type conversions. The project is developed by Jane Street.

Community & reference links

Languages

OCaml
97.6%
Vim Script
2.2%
Makefile
0.2%
Standard ML
0.1%
Dune
0.0%

Contributors