]> Repositorios git - scryer-prolog.git/commitdiff
replace Char '!' with QueryTerm::BlockedCut
authorMark Thom <[email protected]>
Wed, 3 Feb 2021 04:03:15 +0000 (21:03 -0700)
committerMark Thom <[email protected]>
Wed, 3 Feb 2021 04:03:26 +0000 (21:03 -0700)
src/machine/preprocessor.rs

index c063bd6f1224ce950c19e55037bff19e066415f5..a6e3f1e30a6048812bd02b9796d3365d6789ce8f 100644 (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()))
             }