support discontiguous and multifile declarations

This commit is contained in:
Mark Thom
2021-02-16 20:54:51 -07:00
parent e2a413df78
commit 6b6666be47
12 changed files with 1209 additions and 551 deletions

View File

@@ -412,9 +412,15 @@ impl Machine {
fn handle_toplevel_command(&mut self, code_ptr: REPLCodePtr, p: LocalCodePtr) {
match code_ptr {
REPLCodePtr::AddDiscontiguousPredicate => {
self.add_discontiguous_predicate();
}
REPLCodePtr::AddDynamicPredicate => {
self.add_dynamic_predicate();
}
REPLCodePtr::AddMultifilePredicate => {
self.add_multifile_predicate();
}
REPLCodePtr::AddGoalExpansionClause => {
self.add_goal_expansion_clause();
}