package ppxlib
Standard infrastructure for ppx rewriters
Install
dune-project
Dependency
Authors
Maintainers
Sources
a6fadbd212f3cd7d5d8dcfefc46c884f710fedc0.tar.gz
sha256=25e81f2085ad19688f7056c6df49ca48b3df4cea8304ba3be2550e172d59bfec
sha512=cfdaa06fd32d206f72de05a5289d33ec85fa6bdf7c5be7c85874a16d9e154cdc080465453b60fe7f6c01589eb92e4296b18067413ac2d8dec47b9539f55e301e
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