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/Location/index.html

Module Libelectrod.LocationSource

Locations in a file (issued from the parsing phase).

Sourcetype t

A location in a file represents an interval from a start position to an end one.

Sourceval from_positions : Lexing.position -> Lexing.position -> t

from_positions begp endp takes Lexing.positions begp and endp position returns a location out of them. Requires: begp < endp.

Accessors:

Sourceval begl : t -> int
Sourceval begc : t -> int
Sourceval endl : t -> int
Sourceval endc : t -> int
Sourceval to_ints : t -> (int * int) * (int * int)
Sourceval span : (t * t) -> t

Merge two positions

Sourceval dummy : t

Dummy position

Sourcetype 'a located = {
  1. data : 'a;
  2. loc : t;
}
Sourceval make_located : 'a -> t -> 'a located
Sourceval pp_located : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a located -> unit
include Intf.Print.S with type t := t
Sourceval pp : t Fmtc.t
Sourceval to_string : t -> string
OCaml

Innovation. Community. Security.