jon.recoil.org

Module Ppx_stringSource

Sourcemodule Config : sig ... end

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

Sourcemodule Part : sig ... end
Sourcemodule Parse_result : sig ... end
Sourcemodule Config_modes : sig ... end

Parse a string to find interpolated substrings.

Interpret an interpolated string as an expression, including %{conversions#String} and %{padding#:8}.

Sourceval expand : config:Ppx_string.Config.t -> expr_loc:Ppxlib.location -> string_loc:Ppxlib.location -> string:Base.string -> delimiter:Base.string Base.option -> Ppxlib.expression

Combines parse, interpret, and concatenation to expand an interpolated string to an expression implementing it.

Sourceval extension : name:Base.string -> config:Ppx_string.Config.t -> Ppxlib.Extension.t

Construct an Extension.t implementing the configured interpolation ppx.

Configuration for [%string] family: string type and conversion type are string, length type is int, and no preprocessing. When ~local:true, the configuration for [%string], otherwise the configuration for [%string.global]