add expand_term/2
This commit is contained in:
@@ -190,7 +190,7 @@ impl MachineState {
|
||||
pub(super) fn system_call(&mut self, ct: &SystemClauseType,
|
||||
indices: &IndexStore,
|
||||
call_policy: &mut Box<CallPolicy>,
|
||||
cut_policy: &mut Box<CutPolicy>,)
|
||||
cut_policy: &mut Box<CutPolicy>)
|
||||
-> CallResult
|
||||
{
|
||||
match ct {
|
||||
@@ -202,6 +202,10 @@ impl MachineState {
|
||||
_ => self.fail = true
|
||||
};
|
||||
},
|
||||
&SystemClauseType::ExpandTerm => {
|
||||
self.p = CodePtr::Local(LocalCodePtr::UserTermExpansion(0));
|
||||
return Ok(());
|
||||
},
|
||||
&SystemClauseType::GetDoubleQuotes => {
|
||||
let a1 = self[temp_v!(1)].clone();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user