package ppx_string

  1. Overview
  2. Docs
Ppx extension for string interpolation

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=06b4e061fb5e2b2a85298c9829cc31a1af0a9b8e63fdee9048c76ec8d52d16ef

doc/ppx_string/Ppx_string/Config/index.html

Module Ppx_string.ConfigSource

Used to configure different instances of this ppx. May be used, for example, to add preprocessing, or to interpolate a different string-like type.

Used to configure different instances of this ppx. May be used, for example, to add preprocessing, or to interpolate a different string-like type.

Sourcetype t = {
  1. fully_qualified_runtime_module : Ppxlib.Longident.t;
    (*

    Where to find an implementation of Ppx_string_runtime.S. The implementation of [%string] is at Ldot (Lident "Ppx_string_runtime", "For_string")

    *)
  2. conversion_function_name : Base.string;
    (*

    Conversion function implied by "%{expr#Module}", e.g. "to_string".

    *)
  3. preprocess_before_parsing : (Base.string -> Base.string) Base.option;
    (*

    Preprocessing to apply before parsing the string for interpolation. If None, source locations can be computed precisely based on the result of parsing.

    *)
}