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.datalogLib/DatalogLib/Datalog/Make/Rule/index.html

Module Make.RuleSource

Sourcetype rule = {
  1. id : int;
  2. lhs : Predicate.predicate;
  3. e_rhs : (Predicate.predicate * int) list;
  4. i_rhs : (Predicate.predicate * int) list;
  5. i_rhs_num : int;
  6. content : Datalog_AbstractSyntax.ConstGen.id UF.t;
}
Sourceval make_rule : ASRule.rule -> rule

make_rule r returns an internal rule, that is one whose content is now a UnionFind.S indexed data structure. It is ensured that the id of the generated concrete rule is the same as the one of the abstract rule.

Sourceval cyclic_unify : int -> int -> 'a UF.t -> 'a UF.t
Sourcemodule FactArray : sig ... end
Sourceval immediate_consequence_of_rule : rule -> FactArray.row Predicate.PredMap.t -> ASPred.predicate list

to_abstract r table returns a datalog abstract syntax rule where the arguments of all (datalog abstract syntax) predicates have been computed using r.content and the symbol are the one stored in table.

Sourcemodule Rules : Set.S with type elt = rule