package ostap

  1. Overview
  2. Docs

Module Ostap.TrapSource

Trap is infrastructure to maintain the relation between parsed items and their locator information.

Sourcemodule type Sig = sig ... end

Signature of trapping module.

Sourcemodule type Trapped = sig ... end

Signature of trapped items.

Sourcemodule Default (X : sig ... end) : Trapped with type t = X.t

Default wrapper for any type; uses Hashtbl.hash.

Sourcemodule Make (X : Trapped) : Sig with type t = X.t

Trap constructor.

Sourcemodule String : Sig with type t = string

String trap --- traps strings to locations.

OCaml

Innovation. Community. Security.