add access to HeapVarDict to the printer.

This commit is contained in:
Mark Thom
2018-05-04 20:51:02 -06:00
parent afc5736418
commit c369ce9a7f
4 changed files with 47 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ use prolog::heap_print::*;
use prolog::tabled_rc::*;
mod machine_errors;
pub(crate) mod machine_state;
pub(super) mod machine_state;
#[macro_use]
mod machine_state_impl;
@@ -427,12 +427,8 @@ impl Machine {
where Outputter: HCValueOutputter
{
for (var, addr) in var_dir {
output.begin_new_var();
output.append(var.as_str());
output.append(" = ");
output = self.ms.print_term(addr.clone(), TermFormatter {}, output);
let fmt = TermFormatter {};
output = self.ms.print_var_eq(var.clone(), addr.clone(), var_dir, fmt, output);
}
output