package ppxlib

  1. Overview
  2. Docs
Standard infrastructure for ppx rewriters

Install

Dune Dependency

Authors

Maintainers

Sources

ppxlib-0.35.0.tbz
sha256=d9d959fc9f84260487e45684dc741898a92fc5506b61a7f5cac65d21832db925
sha512=e428b1e3b89261c7efdaa18016264d1afbf067cb9b0d41124b04796c2487ac7ca8ee9a24a60d56f20d1774cb44aaa9ecf1512f17455812ba8d62d4ef93616ee7

doc/ppxlib/Ppxlib/Ast_builder/index.html

Module Ppxlib.Ast_builderSource

Ast_builder is a module to generate OCaml AST fragments. It provides a shorter syntax than directly using the Parsetree constructors, as well as a better stability than the constructors.

For a detailed explanation on this module, refer to the relevant part of the manual.

API

Sourcemodule Default : sig ... end

Helpers taking a ~loc argument. This module is meant to be opened or aliased.

Sourcemodule type Loc = sig ... end
Sourcemodule type S = sig ... end
Sourcemodule Make (Loc : Loc) : S

Build Ast helpers with the location argument factorized.

Sourceval make : Location.t -> (module S)

Functional version of Make.

OCaml

Innovation. Community. Security.