add term_expansion basics

This commit is contained in:
Mark Thom
2018-09-22 17:05:19 -06:00
parent 4d57989c2b
commit 66584cee5e
4 changed files with 25 additions and 19 deletions

View File

@@ -94,7 +94,9 @@ impl Machine {
self.reset();
Ok(None)
} else {
Ok(Some(read_term_from_heap(&self.ms, Addr::HeapCell(h))?))
let term = read_term_from_heap(&self.ms, Addr::HeapCell(h))?;
self.reset();
Ok(Some(term))
}
}
}