package ppxlib

  1. Overview
  2. Docs
Standard infrastructure for ppx rewriters

Install

dune-project
 Dependency

Authors

Maintainers

Sources

757f6c284b1fe748d5027eef3bbef924b6bbd7ce.tar.gz
sha256=89a98c95ddd0bfbac17b5a936f6811af7097be3258c482d5859b73e9de9b4552
sha512=b19306473d867252d382e58e9b697531c5edccdc9283b5eaf72f524803c2fca2a58a5e8f25bee198b00de82cf8ef805b43f7488791c3ac5beb0ffba938ded826

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.