add use_module/{1,2} as full fledged predicates

This commit is contained in:
Mark Thom
2019-09-30 10:26:29 -06:00
parent 376b39a4ef
commit 9df14cf890
14 changed files with 261 additions and 59 deletions

View File

@@ -1,19 +1,10 @@
#[macro_use]
extern crate cfg_if;
#[macro_use]
extern crate downcast;
extern crate indexmap;
#[macro_use]
extern crate prolog_parser;
#[macro_use]
extern crate ref_thread_local;
cfg_if! {
if #[cfg(feature = "readline_rs_compat")] {
extern crate readline_rs_compat;
}
}
extern crate termion;
mod prolog;
@@ -25,9 +16,6 @@ use prolog::read::*;
mod tests;
fn main() {
// #[cfg(feature = "readline_rs_compat")]
// readline::readline_initialize();
let mut wam = Machine::new(readline::input_stream());
wam.run_toplevel();
let mut wam = Machine::new(readline::input_stream());
wam.run_top_level();
}