Ppx\_metaquot is a ppx rewriter allowing you to write values representing the OCaml AST in the OCaml syntax.
[%expr x + 1]
is a value of type
Ppx_ast.Ast.expression, represention the OCaml
x + 1.
Ppx\_metaquot is similar to ppx_tools.metaquot expect that:
- it uses the version of the OCaml AST defined by Ppx\_ast rather than the one from the current compiler
- it can be used simultaneously with other rewriters using Ppx_driver