The command written in README.md doesn't work (The usage of ocamlfind is shown.) I understand the ppx_metaquot execution file is a kind of rewrite file, so I can translate my code using quasi quotation in this way:
ocamlfind ppx_tools/rewriter ~/.opam/system/lib/ppx_tools/ppx_metaquot sample.ml
but this may not be an assumed way, so please tell me the correct usage.
When wd want to use some PPX, normally wd use
-package
option of ocamlfind:This compiles
sample.ml
using the preprocessorppx_tools.metaquot
.If you want to see the output of PPX in human readable form, AFAIK things get a bit more complicated.:
or the following is better:
There might be a simpler way than this but I do not know.