As far as I understand, ocaml-migrate-parsetree
is the ‘old style’ and all the PPXs were encouraged to move to the ‘new style’ which was ppxlib
: An Update on the State of the PPX Ecosystem and `ppxlib`'s Transition
Dear all,
We’re happy to announce the release of ppxlib.0.22.0, the fist release of ppxlib fully compatible
with OCaml 4.12.
The main and only feature of this release is the bump of the internal OCaml AST used by ppxlib from
4.11 to 4.12, allowing you to use 4.12 language features with ppxlib and any ppxlib-based ppx.
Note that ppxlib was compatible with the 4.12 compiler since 0.19.0 but that you couldn’t use 4.12
language features until now.
This is the third such AST bump release since…
Based on what I’ve read, ppxlib
was supposed to be a better solution to the incompatible AST problem. But to be honest, I don’t understand PPX all that well.