package elpi

  1. Overview
  2. Docs
ELPI - Embeddable λProlog Interpreter

Install

dune-project
 Dependency

Authors

Maintainers

Sources

elpi-3.4.1.tbz
sha256=deb40fc3dd5d1c0aa9eb52931e4d54384aa1e6cc96ad9675575ff5784f1cc88f
sha512=71092d086b9ad72a5b6e08ecfa2fa896bd109730c1896ff0cfe7465be6d7dc5faff033e0bd518e450279925e38ac1cb254ce18f90235b3492508ce346a3d1efc

doc/elpi.runtime/Elpi_runtime/Data/CHR/index.html

Module Data.CHRSource

Sourcetype t
Sourcetype clique
Sourcetype sequent = {
  1. eigen : term;
  2. context : term;
  3. conclusion : term;
}
Sourceand rule = {
  1. to_match : sequent list;
  2. to_remove : sequent list;
  3. patsno : int;
  4. guard : term option;
  5. new_goal : sequent option;
  6. nargs : int;
  7. pattern : Elpi_util.Util.constant list;
  8. rule_name : string;
  9. rule_loc : Elpi_util.Util.Loc.t;
}
Sourceval pp_sequent : Fmt.formatter -> sequent -> unit
Sourceval show_sequent : sequent -> string
Sourceval pp_rule : Fmt.formatter -> rule -> unit
Sourceval show_rule : rule -> string
Sourceval empty : t
Sourceval add_rule : clique -> rule -> t -> t
Sourceval in_clique : clique -> Elpi_util.Util.constant -> bool
Sourceval rules_for : Elpi_util.Util.constant -> t -> rule list
Sourceval pp : Fmt.formatter -> t -> unit
Sourceval pp_clique : Fmt.formatter -> clique -> unit
Sourceval show : t -> string