package electrod

  1. Overview
  2. Docs
Formal analysis for the Electrod formal pivot language

Install

Dune Dependency

Authors

Maintainers

Sources

electrod-0.4.1.tbz
sha256=b0bce9cc7126672feda5a02d5ef0c1131ba54db57654f80c0768c2f8d043cef9
sha512=92cc22f81522435e190039324767b6f69fa0b7d9dbfc3fb5561919823136fe492244dae993caf98633828e0090b67f306eec6270b86a1b2ff8630642130a3081

doc/electrod.libelectrod/Libelectrod/Transfo/index.html

Module Libelectrod.TransfoSource

Specification of transformations.

Sourcetype ('src, 'dst) t

A transformation conforms to the following signature.

Sourceval make : string -> ('src -> 'dst) -> ('src, 'dst) t

Constructor. The first parameter is the name: it must be unique in the whole program.

Sourceval name : ('src, 'dst) t -> string

Retrieves the name...

Sourceval run : ('src, 'dst) t -> 'src -> 'dst

Runs a transformation

Sourceval fby : ('a, 'b) t -> ('b, 'c) t -> ('a, 'c) t

Returns the composition (left-to-right) of two transformations.

Sourceval identity : ('a, 'a) t

Identity transformation

Sourcetype ('src, 'dst) tlist

A list of transformations with given source and target type.

Sourceval tlist : ('src, 'dst) t list -> ('src, 'dst) tlist

Creates a list of transformations with a default one .

Sourceval get_exn : ('src, 'dst) tlist -> string -> ('src, 'dst) t

Retrieves a transformation. May raise Not_found.

OCaml

Innovation. Community. Security.