Skip to content

janestreet-deprecated/ppx_metaquot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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