abstract Outputter of heap_print
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
use prolog::ast::*;
|
||||
use prolog::codegen::*;
|
||||
use prolog::debray_allocator::*;
|
||||
use prolog::heap_print::*;
|
||||
use prolog::machine::*;
|
||||
|
||||
use termion::raw::IntoRawMode;
|
||||
@@ -440,7 +441,7 @@ pub fn print(wam: &mut Machine, result: EvalSession) {
|
||||
|
||||
loop {
|
||||
let mut result = EvalSession::QueryFailure;
|
||||
let bindings = wam.heap_view(&heap_locs);
|
||||
let bindings = wam.heap_view::<PrinterOutputter>(&heap_locs);
|
||||
|
||||
let stdin = stdin();
|
||||
let mut stdout = stdout().into_raw_mode().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user