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.unix/Datalog_unix/Default/TD/T/index.html

Module TD.TSource

Sourcetype t = private
  1. | Var of int
  2. | Apply of const * t array
Sourceval mk_var : int -> t
Sourceval mk_const : const -> t
Sourceval mk_apply : const -> t array -> t
Sourceval mk_apply_l : const -> t list -> t
Sourceval is_var : t -> bool
Sourceval is_apply : t -> bool
Sourceval is_const : t -> bool
Sourceval eq : t -> t -> bool
Sourceval hash : t -> int
Sourceval ground : t -> bool
Sourceval vars : t -> int list
Sourceval max_var : t -> int

max var, or 0 if ground

Sourceval head_symbol : t -> const
Sourceval to_string : t -> string
Sourceval pp : out_channel -> t -> unit
Sourceval fmt : Format.formatter -> t -> unit
Sourceval pp_tuple : out_channel -> t list -> unit
Sourcemodule Tbl : Hashtbl.S with type key = t
OCaml

Innovation. Community. Security.