add queues, fix debray allocator bug.

This commit is contained in:
Mark Thom
2018-03-08 00:29:56 -07:00
parent 10db0f58dd
commit 179e425fb6
5 changed files with 86 additions and 16 deletions

View File

@@ -14,6 +14,7 @@ mod tests;
pub static LISTS: &str = include_str!("./prolog/lib/lists.pl");
pub static CONTROL: &str = include_str!("./prolog/lib/control.pl");
pub static QUEUES: &str = include_str!("./prolog/lib/queues.pl");
fn parse_and_compile_line(wam: &mut Machine, buffer: &str)
{
@@ -39,6 +40,7 @@ fn prolog_repl() {
load_init_str(&mut wam, LISTS);
load_init_str(&mut wam, CONTROL);
load_init_str(&mut wam, QUEUES);
loop {
print!("prolog> ");
@@ -49,7 +51,7 @@ fn prolog_repl() {
match compile_listing(&mut wam, batch.as_str()) {
EvalSession::Error(e) => println!("{}", e),
_ => {}
},
},
Input::Quit => break,
Input::Clear => {
wam.clear();