Skip to main content

Module ast

Module ast 

Source
Expand description

Abstract Syntax Tree for XLOG programs

Structs§

AggExpr
Aggregate expression
AnnotatedDisjunction
Annotated disjunction (p1::a1; p2::a2.)
Atom
An atom (predicate applied to terms)
Comparison
A comparison expression
CondExpr
Conditional expression: if X < 0 then A else B
Constraint
A constraint (:- body)
Directives
Compilation/evaluation directives (e.g., #pragma ...).
DomainDecl
Domain declaration
EpistemicLiteral
Epistemic atom literal in a rule body.
Evidence
Evidence statement (evidence(atom, true|false).)
FuncDef
User-defined function
FuncParam
Function parameter with optional type annotation
IsExpr
Is-expression for variable binding: Z is X + Y
LearnableRule
A learnable rule template parameterized by a named tensor mask. Used for differentiable ILP — the mask selects which (body1, body2, head) combinations are active during execution.
NeuralPredDecl
Neural predicate declaration
PredColumn
Predicate declaration column.
PredDecl
Predicate declaration
ProbFact
A probabilistic fact (p::atom.)
ProbQuery
Probabilistic query statement (query(atom).)
Program
A complete XLOG program
Query
A query (?- atom.)
Rule
A rule (head :- body)
Univ
A finite univ expression (Term =.. Parts) in a rule body.
UseDecl
Import statement: use module. or use module::{pred1, pred2}.

Enums§

AggOp
Aggregation operator
ArithExpr
Arithmetic expression tree
BodyLiteral
A literal in the body of a rule
CompOp
Comparison operator
EpistemicMode
Epistemic semantics mode.
EpistemicOp
Epistemic operator on an atom.
FuncBody
Function body - arithmetic, conditional, or predicate-based
MagicSetsMode
Magic-set rewrite mode for bound recursive deterministic queries.
NeuralLabel
A label in a neural predicate classification
ProbCache
Probabilistic compilation caching.
ProbEngine
Probabilistic engine selection.
ProbMethod
Monte Carlo sampling method selection.
Term
A term in an atom
TypeRef
A type reference in source declarations.