/ppx_metaquot

Deprecated, use ocaml-ppx/ppxlib instead

Primary LanguageMakefileApache License 2.0Apache-2.0

ppx_metaquot

Ppx\_metaquot is a ppx rewriter allowing you to write values representing the OCaml AST in the OCaml syntax.

For instance:

[%expr x + 1]

is a value of type Ppx_ast.Ast.expression, represention the OCaml expression 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