replace Char '!' with QueryTerm::BlockedCut

This commit is contained in:
Mark Thom
2021-02-02 21:03:15 -07:00
parent 09a089d5f1
commit a2447ecaa3

View File

@@ -712,6 +712,9 @@ impl Preprocessor {
Ok(clause_to_query_term(load_state, name, vec![], fixity))
}
}
Term::Constant(_, Constant::Char('!')) => {
Ok(QueryTerm::BlockedCut)
}
Term::Var(_, ref v) if v.as_str() == "!" => {
Ok(QueryTerm::UnblockedCut(Cell::default()))
}