package datalog

  1. Overview
  2. Docs
An in-memory datalog implementation for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

v0.6.tar.gz
md5=4a2d12d630a5edd694968675a84a3ef5
sha512=685c0e186705837cb3ac66df6e8011d9f6a9629484b3a813b767df95348d5a41f37301f3e199ed6c91a42a87d1563e8355377269176785b123eb297a5ad022d7

doc/datalog.caml_interface/Datalog_caml_interface/Logic/BuiltinFun/index.html

Module Logic.BuiltinFunSource

Sourcetype t = T.t -> T.t option
Sourcetype map

Map symbols to builtin functions. Every symbol can only have at most one built-in function.

Sourceval create : unit -> map
Sourceval add : map -> Const.t -> t -> unit

Interpret the given constant by the given function. The function can assume that any term is it given as a parameter has the constant as head.

Sourceval add_list : map -> (Const.t * t) list -> unit
Sourceval interpreted : map -> Const.t -> bool

Is the constant interpreted by a built-in function?

Sourceval eval : map -> T.t -> T.t

Evaluate the term at root

OCaml

Innovation. Community. Security.