prepare for batch processing.

This commit is contained in:
Mark Thom
2018-01-29 22:04:51 -07:00
parent bb49f35027
commit 73714e8aa2
7 changed files with 112 additions and 48 deletions

View File

@@ -7,6 +7,10 @@ mod prolog;
use prolog::io::*;
use prolog::machine::*;
use std::fs::File;
use std::io::prelude::*;
use std::path::Path;
#[cfg(test)]
mod tests;
@@ -24,6 +28,8 @@ fn process_buffer(wam: &mut Machine, buffer: &str)
fn prolog_repl() {
let mut wam = Machine::new();
load_init_file(&mut wam, "lists.pl");
loop {
print!("prolog> ");