package elpi

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

Install

Dune Dependency

Authors

Maintainers

Sources

elpi-2.0.7.tbz
sha256=80233ebd92babd696148ed553238961ec7b6de6bf157045aae1c7090840aeded
sha512=00c9ec01fabde9db1de4a58cb37480035e6f926d83b8360553419bcb99e9199f0720dde975f97ac9942ce528884d3d59d025cfbd471f12d57547429f15684d49

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
OCaml

Innovation. Community. Security.