To focus the search input from anywhere on the page, press the 'S' key.
in-package search v0.1.0
-
comby
-
-
comby.configuration
-
comby.interactive
-
comby.patdiff
-
comby.patdiff_kernel
-
-
comby.pipeline
-
comby.statistics
Library
Module
Module type
Parameter
Class
Class type
Match
A match is a result of matching a template pattern in an input source.
A match comprises: (1) an environment of metavariables to values, where values have an associated range. (2) the entire string matched by a match template. (3) the range of the entire matched string.
module Location : sig ... end
type location = Location.t
val equal_location : location -> location -> Ppx_deriving_runtime.bool
val sexp_of_location : location -> Ppx_sexp_conv_lib.Sexp.t
val location_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> location
module Range : sig ... end
type range = Range.t
val equal_range : range -> range -> Ppx_deriving_runtime.bool
val sexp_of_range : range -> Ppx_sexp_conv_lib.Sexp.t
val range_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> range
module Environment : sig ... end
type environment = Environment.t
A match t is: (1) an environment of metavariables to values, where values have an associated range. (2) the entire string matched by a match template. (3) the range of the entire matched string.
val to_yojson : t -> Yojson.Safe.json
val of_yojson : Yojson.Safe.json -> (t, string) Core_kernel.Result.t
convert_offset
populates line and column information for a source
file associated with the match (by default, only the offset is computed matches). For matches fast
is an experimental option that uses a binary search to perform the conversion quickly.
val pp : Format.formatter -> (string option * t list) -> unit
pp
is a grep-like formatted printer for matches. It accepts a (optional file path * match list)
val pp_json_lines : Format.formatter -> (string option * t list) -> unit
pp
is a JSON formatted printer for (optional file path * match list). One line printed per match.
val pp_match_count : Format.formatter -> (string option * t list) -> unit