match toc {
&TermOrCut::Term(Term::Clause(_, ref name, _))
- | &TermOrCut::Term(Term::Constant(_, Constant::Atom(ref name))) => {
+ | &TermOrCut::Term(Term::Constant(_, Constant::Atom(ref name))) => {
if let &mut Line::Control(ref mut ctrl) = body.last_mut().unwrap() {
*ctrl = ControlInstruction::Execute(name.clone(), last_arity);
}
self.ms.p = self.ms.or_stack[b].bp;
if let CodePtr::TopLevel(_, 0) = self.ms.p {
- return EvalSession::QueryFailure
+ return EvalSession::QueryFailure;
}
self.run_query(alloc_locs, heap_locs);
result += "[]",
CellView::Con(&Constant::Atom(ref atom)) =>
result += atom.as_str(),
- CellView::HeapVar(cell_num) => {
+ CellView::HeapVar(cell_num) | CellView::StackVar(_, cell_num) => {
result += "_";
result += cell_num.to_string().as_str();
},
- CellView::StackVar(fr, sc) => {
- result += "_";
- result += fr.to_string().as_str();
- result += "_";
- result += sc.to_string().as_str();
- },
CellView::Str(_, ref name) =>
result += name.as_str(),
CellView::TToken(TToken::Bar) => {