package acgtk

  1. Overview
  2. Docs
Abstract Categorial Grammar development toolkit

Install

dune-project
 Dependency

Authors

Maintainers

Sources

acg-2.2.0-20251107.tar.gz
sha512=07f391d052090bb70c10ec511fdc53af764954cbe1c30093778984c5ed41a4327573fdac0890c6fd619ff9827725572eb7b8a7545bd8ccb7f5bddb84d2d7f7cc

doc/acgtk.utilsLib/UtilsLib/IdGenerator/IdGen/index.html

Module IdGenerator.IdGenSource

This module is a functor that generates a identifier generator from a module implementing these identifiers

Parameters

module ID : IdType

Signature

Sourcetype id = ID.t

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