package ppxlib
Standard infrastructure for ppx rewriters
Install
Dune Dependency
Authors
Maintainers
Sources
ppxlib-0.34.0.tbz
sha256=d77d97165a158d7ae56b7c0387cd04e9927d7e7e797ca1039ffb5bb17a6661a7
sha512=84954f375b0c3ed063c874c47cc2597cceea338de0f567f64f340bd4e3569ef88421369b92bd5830701216bcdb88d78f50f3896c8edeb13250f0e7337c106b7d
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
ppxlib
works internally - Registering a transformation
- Generating AST nodes
- Destructing AST nodes
- Traversing the AST
- Good practices
- Examples
API
The API exposes the following modules:
Ppxlib
Standard library for ppx rewritersPpxlib_ast
Astlib
Ppxlib_metaquot
Ppxlib_metaquot_lifters
Ppxlib_print_diff
Ppxlib_runner
Ppxlib_runner_as_ppx
Stdppx
Ppxlib_traverse
Ppxlib_traverse_builtins