package datalog

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

Install

Dune Dependency

Authors

Maintainers

Sources

datalog-0.7.tbz
sha256=13ca520bddf4f0c44d1468bc89347be72ec543be58fff29469a0da24956be541
sha512=25d6e9cb5abe8aa1110730d884abb9e51ae78bf681b3f21709efa32359b9cbdd97d9076761c91562580c090cbce12ce159c97533ae5d9d427c24cb329e950793

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.