package datalog

  1. Overview
  2. Docs
type term = Logic.T.t
type lit = Logic.Lit.t
type clause = Logic.C.t
type name_ctx = (string, term) Hashtbl.t
val create_ctx : unit -> name_ctx
val term_of_ast : ctx:name_ctx -> TopDownAst.term -> term
val lit_of_ast : ctx:name_ctx -> TopDownAst.literal -> lit
val clause_of_ast : ?ctx:name_ctx -> TopDownAst.clause -> clause
val clauses_of_ast : ?ctx:name_ctx -> TopDownAst.clause list -> clause list
val parse_chan : Pervasives.in_channel -> [ `Error of string | `Ok of clause list ]
val parse_file : string -> [ `Error of string | `Ok of clause list ]
val parse_string : string -> [ `Error of string | `Ok of clause list ]
val load_chan : Logic.DB.t -> Pervasives.in_channel -> bool
val load_file : Logic.DB.t -> string -> bool
val load_string : Logic.DB.t -> string -> bool
OCaml

Innovation. Community. Security.