package ppx_tools

  1. Overview
  2. Docs
Tools for authors of ppx rewriters and other syntactic tools

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_tools-6.5.tar.gz
md5=57439259c19b1615588c613a4e7c10e3
sha512=9f24e5feb9d32a5f038e94db33b6a8ba22ef0f83964bf657ac12fd0d39ae2580769612b1ba8988a56a146e4ae5da99e089bda24a4944b18b1df6e146bb75237b

doc/ppx_tools/Ast_convenience/Constant/index.html

Module Ast_convenience.ConstantSource

Provides a unified abstraction over differences in Parsetree.constant and Asttypes.constant * types defined in ocaml 4.03 and 4.02 respectively

Sourcetype t = Parsetree.constant =
  1. | Pconst_integer of string * char option
  2. | Pconst_char of char
  3. | Pconst_string of string * Location.t * string option
  4. | Pconst_float of string * char option
Sourceval of_constant : Parsetree.constant -> t

Convert Asttypes.constant to Constant.t

Sourceval to_constant : t -> Parsetree.constant

Convert Constant.t to Asttypes.constant

OCaml

Innovation. Community. Security.