remove BuildIf, BuildNot, BuildThen TermIterState variants

This commit is contained in:
Mark Thom
2023-01-30 23:26:50 -07:00
committed by Mark
parent cb59c3003a
commit b205abe949
4 changed files with 112 additions and 84 deletions

View File

@@ -106,10 +106,10 @@ impl ChunkType {
pub enum QueryTerm {
// register, clause type, subterms, clause call policy.
Clause(Cell<RegType>, ClauseType, Vec<Term>, CallPolicy),
Cut,
Not(Vec<QueryTerm>),
IfThen(Vec<QueryTerm>, Vec<QueryTerm>),
LocalCut(Cell<VarReg>), // for IfThen.
Fail,
GlobalCut,
GetCutPoint(usize),
LocalCut(usize),
Branch(Vec<Vec<QueryTerm>>),
ChunkTypeBoundary(ChunkType),
}