package ostap

  1. Overview
  2. Docs

String trap --- traps strings to locations.

type t = string

Type of trapped items.

val attach : t -> Msg.Locator.t -> unit

attach x loc attaches loc to item x.

val locate : t -> Msg.Locator.t

locate x gets the location for x.

val copier : t -> t -> unit

copier x returns copying function which will preserve trap information.

val cleanup : unit -> unit

Cleans up all the trapping information.

OCaml

Innovation. Community. Security.