package comby

  1. Overview
  2. Docs
A tool 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.patdiff_kernel/Patdiff_kernel/Format/Rule/index.html

Module Format.RuleSource

A rule consists of a styled prefix, a styled suffix, and a style. Rules are applied to strings using functions defined in Output_ops.

Sourcemodule Affix : sig ... end

An affix is either a prefix or a suffix.

Sourcetype t = private {
  1. pre : Affix.t;
  2. suf : Affix.t;
  3. styles : Style.t list;
}
Sourceval sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
Sourceval create : ?pre:Affix.t -> ?suf:Affix.t -> Style.t list -> t

Rule creation: Most rules have a style, and maybe a prefix. For instance, a line_next rule might have a bold "+" prefix and a green style.

Sourceval blank : t
Sourceval unstyled_prefix : string -> t
Sourceval strip_styles : t -> t
OCaml

Innovation. Community. Security.