package ppxlib

  1. Overview
  2. Docs
Standard infrastructure for ppx rewriters

Install

Dune Dependency

Authors

Maintainers

Sources

ppxlib-0.32.1.tbz
sha256=9dbad8bcb1c8b4f3df3f58bca60a5ed23d86531f0da34b4196c86bd585c09d7f
sha512=7b93b622b119478dde03adcf4993e73ea937c91c280e453ccee631c682d8589ecb31841f11d6a14966239954e22e000da8afbe25a0f089532c7210b698c52553

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:

  1. An introduction to ppxlib
  2. How ppxlib works internally
  3. Registering a transformation
  4. Generating AST nodes
  5. Destructing AST nodes
  6. Traversing the AST
  7. Good practices
  8. Examples

API

The API exposes the following modules:

OCaml

Innovation. Community. Security.