package comby-kernel
A match engine for structural code search and replace that supports ~every language
Install
Dune Dependency
Authors
Maintainers
Sources
1.4.1.tar.gz
md5=cd732f90664bc686eaa1134f42c8f7cd
sha512=81c7cd1d70cddee4d1679710a95c50d22f8dc60e48f24554009a5f944eb23e9124ca9aa99357b9879a5a60ca2dbcf976011f53afb442a7f15642e509255a0326
doc/comby-kernel.rewriter/Rewriter/Rewrite_template/index.html
Module Rewriter.Rewrite_template
Source
Source
val substitute_fresh :
?metasyntax:Matchers.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.
Source
val substitute :
?metasyntax:Matchers.Metasyntax.t ->
?fresh:(unit -> string) ->
string ->
Match.Environment.t ->
string * string list
substitute returns the result and variables substituted for
Source
val of_match_context :
?metasyntax:Matchers.Metasyntax.t ->
?fresh:(unit -> string) ->
Match.t ->
source:string ->
string * string
Source
val get_offsets_for_holes :
?metasyntax:Matchers.Metasyntax.t ->
string ->
string list ->
(string * int) list
Source
val get_offsets_after_substitution :
(string * int) list ->
Match.Environment.t ->
(string * int) list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>