package elpi
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/Term/index.html
Module Data.Term
Source
Source
val pp_arg_mode :
Ppx_deriving_runtime.Format.formatter ->
arg_mode ->
Ppx_deriving_runtime.unit
Source
val pp_mode_aux :
Ppx_deriving_runtime.Format.formatter ->
mode_aux ->
Ppx_deriving_runtime.unit
Source
type ttype =
| TConst of Elpi_util.Util.constant
| TApp of Elpi_util.Util.constant * ttype * ttype list
| TPred of bool * (arg_mode * ttype) list
| TArr of ttype * ttype
| TCData of Elpi_util.Util.CData.t
| TLam of ttype
Source
type term =
| Const of Elpi_util.Util.constant
| Lam of term
| App of Elpi_util.Util.constant * term * term list
| Cons of term * term
| Nil
| Discard
| Builtin of Elpi_util.Util.constant * term list
| CData of Elpi_util.Util.CData.t
| UVar of uvar_body * int * int
| AppUVar of uvar_body * int * term list
| Arg of int * int
| AppArg of int * term list
Source
val pp_uvar_body :
Ppx_deriving_runtime.Format.formatter ->
uvar_body ->
Ppx_deriving_runtime.unit
Source
type clause = {
depth : int;
args : term list;
hyps : term list;
vars : int;
mode : mode;
loc : Elpi_util.Util.Loc.t option;
mutable timestamp : int list;
}
Source
val pp_grafting_time :
Ppx_deriving_runtime.Format.formatter ->
grafting_time ->
Ppx_deriving_runtime.unit
Source
and second_lvl_idx =
| TwoLevelIndex of {
mode : mode;
argno : int;
all_clauses : clause_list;
flex_arg_clauses : clause_list;
arg_idx : clause_list Ptmap.t;
}
| BitHash of {
mode : mode;
args : int list;
args_idx : clause_list Ptmap.t;
}
| IndexWithDiscriminationTree of {
mode : mode;
arg_depths : int list;
args_idx : clause Discrimination_tree.t;
}
Source
val pp_stuck_goal :
Ppx_deriving_runtime.Format.formatter ->
stuck_goal ->
Ppx_deriving_runtime.unit
Source
val pp_blockers :
Ppx_deriving_runtime.Format.formatter ->
blockers ->
Ppx_deriving_runtime.unit
Source
val pp_unification_def :
Ppx_deriving_runtime.Format.formatter ->
unification_def ->
Ppx_deriving_runtime.unit
Source
val pp_clause_src :
Ppx_deriving_runtime.Format.formatter ->
clause_src ->
Ppx_deriving_runtime.unit
Source
val pp_prolog_prog :
Ppx_deriving_runtime.Format.formatter ->
prolog_prog ->
Ppx_deriving_runtime.unit
Source
val pp_clause_list :
Ppx_deriving_runtime.Format.formatter ->
clause_list ->
Ppx_deriving_runtime.unit
Source
val pp_first_lvl_idx :
Ppx_deriving_runtime.Format.formatter ->
index ->
Ppx_deriving_runtime.unit
Source
val pp_second_lvl_idx :
Ppx_deriving_runtime.Format.formatter ->
second_lvl_idx ->
Ppx_deriving_runtime.unit
Used to index the parameters of a predicate P
MapOn N
-> N-th argument at depth 1 (head symbol only)Hash L
-> L is the list of depths given by the urer for the parameters of P. Indexing is done by hashing all the parameters with a non zero depth and comparing it with the hashing of the parameters of the queryDiscriminationTree L
-> we use the same logic of Hash, except we use DiscriminationTree to discriminate clauses
Source
val pp_indexing :
Ppx_deriving_runtime.Format.formatter ->
indexing ->
Ppx_deriving_runtime.unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>