package datalog

  1. Overview
  2. Docs

AST for TopDown terms

type term =
  1. | Var of string
  2. | Apply of string * term list
  3. | Int of int
type aggregate = {
  1. ag_left : term;
  2. ag_constructor : string;
  3. ag_var : string;
  4. ag_guard : term;
}
type literal =
  1. | LitPos of term
  2. | LitNeg of term
  3. | LitAggr of aggregate
type clause = term * literal list
type file = clause list
exception ParseError of string
val loc_to_str : Lexing.position -> string
val print_error : ?out:out_channel -> string -> Lexing.lexbuf -> unit
val error_to_string : string -> Lexing.lexbuf -> string
OCaml

Innovation. Community. Security.