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.magicRewriting/MagicRewriting/Adornment/index.html

Module MagicRewriting.AdornmentSource

This module implements free/bound adornments

Sourcetype status =
  1. | Bound
  2. | Free
    (*

    the status that can be given to a variable (or a constant)

    *)
Sourceval status_to_string : status -> string

status_to_string st returns a string describing the status (basically either "f" or "b").

Sourcetype t = status list

The type of adornments

Sourceval adornment : bound_variables:ASPred.TermSet.t -> ASPred.predicate -> t * ASPred.TermSet.t

adornment ~bound_variables pred returns a pair (bindings, new_bound_variables) where bindings is the status of each of the parameters of the predicate pred according to the bound_variables set, and new_bound_variables is the bound_variables augmented with the variables occuring as parameters of pred.

Sourceval compare : t -> t -> int

compare ad1 ad2 returns 0 if the adornments are equal, -1 if ad1 is smaller than ad2, and 1 otherwise.

Sourceval to_string : t -> string

to_string ad returns a string (a word made of b's and f's) describing the adornment.

Sourceval adorned_predicate_to_string : pred_table:ASPred.PredIdTable.table -> (ASPred.predicate * t) -> string

adorned_predicate_to_string ~pred_table ad returns the string corresponding to the adorned predicate.