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_AbstractSyntax/AbstractSyntax/Program/index.html

Module AbstractSyntax.ProgramSource

Sourcetype modifier = {
  1. modified_rules : Rule.Rules.t;
  2. new_pred_table : Predicate.PredIdTable.table;
  3. new_const_table : ConstGen.Table.table;
  4. new_i_preds : Predicate.PredIds.t;
  5. new_e_preds : Predicate.PredIds.t;
  6. new_rule_id_gen : UtilsLib.IdGenerator.IntIdGen.t;
}
Sourceval make_program : Proto_Program.t -> program
Sourceval is_in_idb : Predicate.predicate -> program -> bool

is_in_idb pred prog returns true if the predicate pred is an intensional predicate for the program prog

Sourceval is_head : Predicate.predicate -> Rule.rule -> bool

is_head pred rule returns true if the predicate pred matches with the head of the rule rule

match_rules pred prog returns the set of rules of program prog whose heads match with pred

Sourceval get_rule_by_id : program -> int -> Rule.Rules.elt

get_rule_by_id program id Get the rule matching the id

Sourceval pp : ?with_position:bool -> ?with_id:bool -> Format.formatter -> program -> unit