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
Environment
A match environment maps metavariables to values for a given match.
val to_yojson : t -> Yojson.Safe.json
val of_yojson : Yojson.Safe.json -> (t, string) Core_kernel.Result.t
val create : unit -> t
create
creates a new, empty environment
val vars : t -> string list
vars env
returns all metavariables for this environment.
add range env var value
adds a metavariable var
to env
with value value
and range range
. If var
already exists, this function has no effect and returns the existing environment.
val lookup : t -> string -> string option
lookup env ar
returns the value assocated with a metavariable var
.
update env var value
updates the value
of a metavariable var
in env
. If the metavariable does not exist, the entry is added.
lookup_range env var
returns the range associated with metavariable var
in env
.
update_range env var value range
updates env
with the range
associated with the value
of var
val to_string : t -> string
val exists : t -> string -> bool