farm parser out to a crate, remove it as a git submodule.

This commit is contained in:
Mark Thom
2018-09-03 21:58:07 -06:00
parent 4be20e48e6
commit ff9d2662e6
29 changed files with 471 additions and 1300 deletions

View File

@@ -1,12 +1,14 @@
use prolog_parser::ast::*;
use prolog_parser::tabled_rc::*;
use prolog::ast::*;
use prolog::compile::*;
use prolog::heap_print::*;
use prolog::tabled_rc::*;
mod machine_errors;
pub(super) mod machine_state;
#[macro_use]
mod machine_state_impl;
#[macro_use] mod machine_state_impl;
mod system_calls;
use prolog::machine::machine_state::*;
@@ -16,6 +18,8 @@ use std::mem::swap;
use std::ops::Index;
use std::rc::Rc;
static BUILTINS: &str = include_str!("../lib/builtins.pl");
pub struct MachineCodeIndices<'a> {
pub(super) code_dir: &'a mut CodeDir,
pub(super) op_dir: &'a mut OpDir,