1234567891011121314151617181920(* this file is part of datalog. See README for the license *)(** {1 Parsing AST} *)typefile=clauselist(** Toplevel statement *)andclause=|Clauseofliteral*literallistandliteral=|Atomofstring*termlistandterm=|Varofstring|Constofstring|Quotedofstringandquery=|Queryoftermlist*literallist*literallist(** Query: projection, positive lits, negative lits *)(* TODO: negation in body *)