mte/unikernel/duniverse/ppxlib
2025-11-11 02:07:51 +01:00
..
.github 2025-11-11 02:07:51 +01:00
ast 2025-11-11 02:07:51 +01:00
astlib 2025-11-11 02:07:51 +01:00
bench 2025-11-11 02:07:51 +01:00
bin 2025-11-11 02:07:51 +01:00
dev 2025-11-11 02:07:51 +01:00
doc 2025-11-11 02:07:51 +01:00
examples 2025-11-11 02:07:51 +01:00
metaquot 2025-11-11 02:07:51 +01:00
metaquot_lifters 2025-11-11 02:07:51 +01:00
old_rtd_doc 2025-11-11 02:07:51 +01:00
print-diff 2025-11-11 02:07:51 +01:00
runner 2025-11-11 02:07:51 +01:00
runner_as_ppx 2025-11-11 02:07:51 +01:00
src 2025-11-11 02:07:51 +01:00
stdppx 2025-11-11 02:07:51 +01:00
test 2025-11-11 02:07:51 +01:00
traverse 2025-11-11 02:07:51 +01:00
traverse_builtins 2025-11-11 02:07:51 +01:00
.git-blame-ignore-revs 2025-11-11 02:07:51 +01:00
.gitignore 2025-11-11 02:07:51 +01:00
.ocamlformat 2025-11-11 02:07:51 +01:00
.ocamlformat-ignore 2025-11-11 02:07:51 +01:00
.ocp-indent 2025-11-11 02:07:51 +01:00
appveyor.yml 2025-11-11 02:07:51 +01:00
CHANGES.md 2025-11-11 02:07:51 +01:00
CODE_OF_CONDUCT.md 2025-11-11 02:07:51 +01:00
CONTRIBUTING.md 2025-11-11 02:07:51 +01:00
dune 2025-11-11 02:07:51 +01:00
dune-project 2025-11-11 02:07:51 +01:00
dune-workspace.dev 2025-11-11 02:07:51 +01:00
HISTORY.md 2025-11-11 02:07:51 +01:00
LICENSE.md 2025-11-11 02:07:51 +01:00
Makefile 2025-11-11 02:07:51 +01:00
ppxlib-bench.opam 2025-11-11 02:07:51 +01:00
ppxlib-tools.opam 2025-11-11 02:07:51 +01:00
ppxlib-tools.opam.template 2025-11-11 02:07:51 +01:00
ppxlib.opam 2025-11-11 02:07:51 +01:00
ppxlib.opam.template 2025-11-11 02:07:51 +01:00
README.md 2025-11-11 02:07:51 +01:00
RELEASING.md 2025-11-11 02:07:51 +01:00

Ppxlib - Meta-programming for OCaml

ocaml-ci status trunk-build-status AppVeyor status

Ppxlib documentation

Overview

Ppxlib is the standard library for ppx rewriters and other programs that manipulate the in-memory representation of OCaml programs, a.k.a. the "Parsetree".

It also comes bundled with two ppx rewriters that are commonly used to write tools that manipulate and/or generate Parsetree values: ppxlib.metaquot, which allows constructing Parsetree values using the OCaml syntax directly, and ppxlib.traverse, which provides various ways of automatically traversing values of a given type, in particular allowing to inject a complex structured value into generated code.

For more information about ppxlib and how to use it, please consult the documentation.

What is the relation between ppxlib and other ppx libraries?

The ppx world has a long and storied history, and if you look around, you may find other projects that offer functionalities similar to ppxlib. The following blog post gives a good overview of the various libraries that have been developed over time. At this point, ppxlib is considered the de facto library for writing ppx rewriters.

History of the project

This repository was created by merging several older smaller projects that were developed at Jane Street. See the history for more details.