Abstract Categorial Grammar development toolkit
Library acgtkLib.utilsLib
type id = int

The type of the identifier generated

type t

The type of the generator

val init : unit -> t

init () returns a new generator

val 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.

val eq : id -> id -> bool

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

val 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.

val id_to_string : id -> string
module IdMap : Stdlib.Map.S with type key = id

IdMap implements maps whose keys are identifiers

Table implements correspondance tables with the current identifiers