package acgtk

  1. Overview
  2. Docs
Abstract Categorial Grammar development toolkit

Install

Dune Dependency

Authors

Maintainers

Sources

acgtk-1.5.3.tar.gz
sha256=2743321ae4cc97400856eb503a876cbcbd08435ebc750276399a97481d001d41
md5=04c1e14f98e2c8fd966ef7ef30b38323

doc/acgtkLib.utilsLib/UtilsLib/IdGenerator/IntIdGen/index.html

Module IdGenerator.IntIdGenSource

Module implementing the special case where identifiers ar integers.

Sourcetype id = int

The type of the identifier generated

Sourcetype t

The type of the generator

Sourceval init : unit -> t

init () returns a new generator

Sourceval get_fresh_id : t -> id * t

get_fresh_id gen returnds a pair (id,gen') where id is a fresh id and gen' a new generator that knows id was already generated.

Sourceval eq : id -> id -> bool

eq id1 id2 returns true if id1=id2 and fase otherwise.

Sourceval compare : id -> id -> int

compare id1 id2 returns an integer which is 0 if id1=id2, negative of id1 is less than id2 and positive otherwise.

Sourceval id_to_string : id -> string
Sourcemodule IdMap : Map.S with type key = id

IdMap implements maps whose keys are identifiers

Table implements correspondance tables with the current identifiers

OCaml

Innovation. Community. Security.