package datalog

  1. Overview
  2. Docs

Module Datalog_top_down.ASTSource

AST for TopDown terms

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

Innovation. Community. Security.