package comby-kernel

  1. Overview
  2. Docs
A match engine for structural code search and replace that supports ~every language

Install

Dune Dependency

Authors

Maintainers

Sources

comby-kernel.1.7.0.tar.gz
md5=ee6556d8bd9b25ed0445ebe23862e48a
sha512=e6386c8ce5ef14bbcab2b0ead5b1edc39375438f56330d5f02e81e467afe6623a7e299f97f26008d77bbc62850c6dc63a7cbe5b81671b5183ff3adeee5946bb3

doc/comby-kernel.matchers/Matchers/Rewriter/index.html

Module Matchers.RewriterSource

Sourceval 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.

Sourceval 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

Sourceval 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

OCaml

Innovation. Community. Security.