package ppx_core

  1. Overview
  2. Docs
Standard library for ppx rewriters

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_core-v0.10.0.tar.gz
sha256=d916273e9d3769d2f2b47bc4abe56d88b70855a5c435aaf357c4fd5ece7f0d3d
md5=40c20d1696b703536e2503e5b5d0688a

README.md.html

ppx_core - a PPX standard library

Ppx_core is a standard library for OCaml AST transformers. It contains:

  • various auto-generated AST traversal using an open recursion scheme

  • helpers for building AST fragments

  • helpers for matching AST fragments

  • a framework for dealing with attributes and extension points

When used in combination with ppx_driver, it features:

  • spellchecking and other hints on misspelled/misplaced attributes and extension points

  • checks for unused attributes (they are otherwise silently dropped by the compiler)

Ast version

Ppx_core uses the specific version of the OCaml Abstract Syntax Tree as defined by Ppx_ast.

Compatibility

If you want to write code that works with several versions of Ppx_core using different AST versions, you can use the versionned alternatives for Ast_builder and Ast_pattern. For instance:

open Ppx_core
module Ast_builder = Ast_builder_403
module Ast_pattern = Ast_pattern_403
OCaml

Innovation. Community. Security.