package ppxlib
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=dd4a63bde9d29b49810e04d7653937c932f177a941ca0e1982b6ad53ac442110
sha512=0a8c4fa894aaf445cb93213eaa32afb2772235da44aa28c917aba237731a44d5c2687bd960fca49bff62bbe0f9b3fdd9c15730313b429214ae281069f862ffdc
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 representation 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 constructing 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, please consult the documentation.
What is the relation between ppxlib and other ppx libraries?
The ppx world has a long and storied 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 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.