add use_module/{1,2} as full fledged predicates
This commit is contained in:
16
src/main.rs
16
src/main.rs
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user