package datalog
An in-memory datalog implementation for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
v0.6.tar.gz
md5=4a2d12d630a5edd694968675a84a3ef5
sha512=685c0e186705837cb3ac66df6e8011d9f6a9629484b3a813b767df95348d5a41f37301f3e199ed6c91a42a87d1563e8355377269176785b123eb297a5ad022d7
doc/datalog.unix/Datalog_unix/Make/argument-1-TD/DB/index.html
Module TD.DB
Interpreted predicate. It takes terms which have a given symbol as head, and return a list of (safe) clauses that have the same symbol as head, and should unify with the query term.
val clear : t -> unit
val interpret : ?help:string -> t -> const -> interpreter -> unit
Add an interpreter for the given constant. Goals that start with this constant will be given to all registered interpreters, all of which can add new clauses. The returned clauses must have the constant as head symbol.
val interpret_list : t -> (const * string * interpreter) list -> unit
Add several interpreters, with their documentation
val add_builtin : t -> Const.t -> BuiltinFun.t -> unit
Add a builtin fun
val builtin_funs : t -> BuiltinFun.map
val help : t -> string list
Help messages for interpreted predicates
val num_facts : t -> int
val num_clauses : t -> int
val size : t -> int
find facts unifying with the given term, and give them along with the unifier, to the callback
find clauses whose head unifies with the given term, and give them along with the unifier, to the callback
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>