package ppxlib
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=0b630d7f8d74a899a55cc27188b5ce03e735a93f07ea0c2de56532d8fd93b330
sha512=ecf0fff77ff6f1b356f018b6861b9e40bb8513092a7a486a3aa6024d12f5c15135899b77a188a44abc1c2ca84ebccb8bf9a78241e0383e023663fd7f86fbca72
README.md.html
Ppxlib - Meta-programming for OCaml
Overview
Ppxlib is the standard library for ppx rewriters and other programs that manipulate the in-memory reprensation of OCaml programs, a.k.a the "Parsetree".
It also comes bundled with two ppx rewriters that are commonly used to write tools that manipulate and/or generate Parsetree values; ppxlib.metaquot
which allows to construct Parsetree values using the OCaml syntax directly and ppxlib.traverse
which provides various ways of automatically traversing values of a given type, in particular allowing to inject a complex structured value into generated code.
For more information about ppxlib and how to use it, pease consult the user manual.
What is the relation between ppxlib and other ppx libraries?
The ppx world has a long historied history, and if you look around you may find other projects that offer functionalities similar to ppxlib. The following blog post gives a good overview of the various libraries that have been developed over time. At this point, ppxlib is considered as the de facto library for writing ppx rewriters.
History of the project
This repository was created by merging several older smaller projects that were developed at Jane Street. See the history for more details.