package comby-kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val substitute_fresh : ?metasyntax:Metasyntax.t -> ?fresh:(unit -> string) -> string -> string

if fresh is set, then substitute the pattern :id() starting at 1, and incrementing subsequent IDs. If fresh is unset, then by default substitute the pattern :id() starting at 1, and increment for each occurence of :id(), left to right.

val substitute : ?metasyntax:Metasyntax.t -> ?external_handler:External.t -> ?fresh:(unit -> string) -> ?filepath:string -> string -> Match.Environment.t -> string

substitute returns the result of substituting env in template

val all : ?source:string -> ?metasyntax:Matchers__.Types.Metasyntax.t -> ?external_handler:External.t -> ?fresh:(unit -> string) -> ?filepath:string -> rewrite_template:string -> Match.t list -> Replacement.result option

if source is given, substitute in-place. If not, emit result separated by newlines