package pa_ppx

  1. Overview
  2. Docs
PPX Rewriters for Ocaml, written using Camlp5

Install

Dune Dependency

Authors

Maintainers

Sources

0.20.tar.gz
sha512=ff58c156d84c682c720c4b3eb7b3fc2c226750458f328cc03eb4f541c1e4a82303deae864a015e2a353350010c277466f2c7a36eb46e78d616d24e71ca695f58

Description

This is a collection of PPX rewriters, re-implementing those based on ppxlib and other libraries, but instead based on Camlp5. Included is also a collection of support libraries for writing new PPX rewriters. Included are:

pa_assert: ppx_assert pa_ppx.deriving, pa_ppx.deriving_plugins (enum, eq, fold, iter, make, map, ord, sexp, show, yojson): ppx_deriving, plugins, ppx_sexp_conv, ppx_deriving_yojson pa_ppx.expect_test: ppx_expect_test pa_ppx.here: ppx_here pa_ppx.import: ppx_import pa_ppx.inline_test: ppx_inline_test

pa_ppx.undo_deriving: pa_ppx.deriving expands [@@deriving ...] into code; this rewriter undoes that. pa_ppx.unmatched_vala: expands to match-cases (support library for camlp5-based PPX rewriters) pa_ppx.hashrecons: support for writing AST rewriters that automatically fills in hash-consing boilerplate pa_dock: implements doc-comment extraction for camlp5 preprocessors

Many of the reimplementations in fact offer significant enhanced function, described in the pa_ppx documentation. In addition, there is an extensive test-suite, much of it slightly modified versions of the tests for the respective PPX rewriters.

Published: 16 Jul 2025

Dependencies (15)

  1. sexplib >= "v0.14.0"
  2. cppo
  3. ounit
  4. uint >= "2.0.1"
  5. fmt
  6. bos >= "0.2.0"
  7. sexplib0
  8. yojson >= "1.7.0"
  9. result >= "1.5"
  10. pcre2
  11. not-ocamlfind >= "0.10"
  12. camlp5 >= "8.03.06"
  13. camlp5-buildscripts >= "0.03"
  14. conf-perl
  15. ocaml >= "4.10.0" & < "5.4.0"

Dev Dependencies (7)

  1. ppx_sexp_conv with-test & >= "v0.13.0"
  2. ppx_here with-test & >= "v0.13.0"
  3. ppx_deriving_yojson with-test & >= "3.10.0"
  4. ppx_deriving with-test & >= "6.0.2"
  5. ppx_import with-test & >= "1.7.1" & <= "1.11.0"
  6. mdx >= "2.3.0" & with-test
  7. yojson with-test & >= "3.0.0"
OCaml

Innovation. Community. Security.