package ppx_metaquot

  1. Overview
  2. Docs
Write OCaml AST fragment using OCaml syntax

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_metaquot-v0.10.0.tar.gz
sha256=8cbfb44b2ae77a0178159a7d07713231e99dfbfa01c629a4767e9d2c9bc9c3a8
md5=0286e294ae66d43577fa4cf4cecd6069

README.org.html

README.org

#+TITLE: ppx_metaquot
#+PARENT: ../README.md

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

For instance:

#+begin_src ocaml
[%expr x + 1]
#+end_src

is a value of type =Ppx_ast.Ast.expression=, represention the OCaml
expression =x + 1=.

Ppx\_metaquot is similar to [[https://github.com/alainfrisch/ppx_tools][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 [[https://github.com/janestreet/ppx_driver][Ppx_driver]]
OCaml

Innovation. Community. Security.