package ppxlib
Standard infrastructure for ppx rewriters
Install
dune-project
Dependency
Authors
Maintainers
Sources
2e150834476230e99e48dfdf34c5e4a1ea6e749b.tar.gz
sha256=591d694609fed01783c9f360602e8660ae0e49eb33b7074c1317a261e00c6cdb
sha512=e15e956a114ab3f61dfa8f7eceed088082a116f3b6fc832b901729f611258af3b39bda748b2046b4886f429617aa64802f90e0520db82302443ecbba461970b2
doc/index.html
ppxlib's user manual
Overview
This is the user manual and API for ppxlib, the core of the PPX meta-programming system for OCaml and its derivatives, such as Reason. For a good introduction on PPXs, what they are, and how to use them, see the OCaml official guide on PPXs. This manual is mostly aimed at authors of PPX rewriters and contains everything one should know in order to write PPX rewriters.
Manual
The manual consists of several sections. It can be read linearly, but you can also jump directly to your section of interest:
- An introduction to
ppxlib - How
ppxlibworks internally - Compatibility with Multiple OCaml Versions
- Registering a transformation
- Generating AST nodes
- Destructing AST nodes
- Traversing the AST
- Good practices
- Examples
API
The API exposes the following modules:
PpxlibStandard library for ppx rewritersPpxlib_astAstlibPpxlib_metaquotPpxlib_metaquot_liftersPpxlib_print_diffPpxlib_runnerPpxlib_runner_as_ppxStdppxPpxlib_traversePpxlib_traverse_builtins