package ppx_ast

  1. Overview
  2. Docs
OCaml AST used by Jane Street ppx rewriters

Install

Dune Dependency

Authors

Maintainers

Sources

v0.9.2.tar.gz
sha256=1ce2fc51f545c9ab06e5c39f9d2da9d64eec82276c131e60f6b6fec272f86714
md5=4541f1e3af69bbc45761a1fdc752d414

Description

Ppx_ast selects a specific version of the OCaml Abstract Syntax Tree from the migrate-parsetree project that is not necessarily the same one as the one being used by the compiler.

It also snapshots the corresponding parser and pretty-printer from the OCaml compiler, to create a full frontend independent of the version of OCaml.

Published: 08 Oct 2017

README

README.org

#+TITLE: ppx\_ast
#+PARENT: ../README.md

Ppx\_ast selects a specific version of the OCaml Abstract Syntax Tree
from the [[https://github.com/let-def/migrate-parsetree][migrate-parsetree]] project that is not necessarily the same
one as the one being used by the compiler.

It also snapshots the corresponding parser and pretty-printer from the
OCaml compiler, to create a full frontend independent of the version
of OCaml.

This AST is used in all Jane Street ppx rewriters, and more generally
in all Ppx\_core/Ppx\_driver based ppx rewriters. Using a different
ASTs allows to "detach" the ppx code from the compiler libraries, and
allow to use ppx rewriters with new compilers before upgrading the ppx
code.

Dependencies (4)

  1. ocaml-migrate-parsetree >= "1.0.5" & < "2.0.0"
  2. ocaml-compiler-libs >= "v0.9" & < "v0.10"
  3. jbuilder >= "1.0+beta2"
  4. ocaml >= "4.06.0" & < "4.08.0"

Dev Dependencies

None

Used by (2)

  1. ppx_core >= "v0.9.0" & < "v0.10.0"
  2. ppx_fun = "0.0.4"

Conflicts

None

OCaml

Innovation. Community. Security.