[[package]]
name = "rusty-wam"
-version = "0.7.15"
+version = "0.7.16"
dependencies = [
"downcast 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)",
"num 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
{
loop {
while let Some(term) = self.stack.pop() {
- match machine_st.try_expand_term(self.indices, self.policies, self.code_repo, &term)?
+ match machine_st.try_expand_term(self.indices, self.policies, self.code_repo, &term)
{
Some(term_string) => {
let term = self.parse_expansion_output(term_string.as_str(), op_dir)?;
impl MachineState {
fn try_expand_term(&mut self, indices: &mut IndexStore, policies: &mut MachinePolicies,
code_repo: &mut CodeRepo, term: &Term)
- -> Result<Option<String>, ParserError>
+ -> Option<String>
{
let term_h = write_term_to_heap(term, self);
let h = self.heap.h;
if self.fail {
self.reset();
- Ok(None)
+ None
} else {
let mut output = {
let mut printer = HCPrinter::new(&self, PrinterOutputter::new());
output.push_char('.');
self.reset();
- Ok(Some(output.result()))
+ Some(output.result())
}
}
}