add second term expansion to capture the addition of hook predicates to the expansion process in loader.pl, loader.rs

This commit is contained in:
Mark Thom
2021-02-17 15:39:52 -07:00
parent 7670b81633
commit 396c589743
7 changed files with 120 additions and 14 deletions

View File

@@ -125,6 +125,18 @@ pub trait ClauseInfo {
fn arity(&self) -> usize;
}
impl ClauseInfo for PredicateKey {
#[inline]
fn name(&self) -> Option<ClauseName> {
Some(self.0.clone())
}
#[inline]
fn arity(&self) -> usize {
self.1
}
}
impl ClauseInfo for Term {
fn name(&self) -> Option<ClauseName> {
match self {