package ppxlib
Standard infrastructure for ppx rewriters
Install
dune-project
Dependency
Authors
Maintainers
Sources
ppxlib-0.31.0.tbz
sha256=d21676654e57faa12d7895caffe8703b64521d66efcf152491871a55b2ae41d8
sha512=63f2d327cfc5382476f812670d304aade91b3ea8f10420d6fc9e7078112368d99dbf43dfda9c2c2cf91341b71c37c45c1fe1d54fecde2348560f9d3c48571603
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 - 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