package electrod

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

Install

Dune Dependency

Authors

Maintainers

Sources

electrod-1.0.0.tbz
sha256=4da251e58d97c797d6e940e586d225a09715777fbb1b25c5527a6a2e1e3c2d58
sha512=89c45ebd0d3401b17eac4217289ed21ec87135ab5fa62bf63b2bed1ad1435a381e3434582c2ec99c2e6d8d87ce23cecfa7ba14d76234493992ae06879b808dd2

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.