package ostap

  1. Overview
  2. Docs

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

module type Sig = sig ... end

Signature of trapping module.

module type Trapped = sig ... end

Signature of trapped items.

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

Default wrapper for any type; uses Hashtbl.hash.

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

Trap constructor.

module String : Sig with type t = string

String trap --- traps strings to locations.

OCaml

Innovation. Community. Security.