Make schala-lib::language private and reexport

This commit is contained in:
greg 2017-11-02 02:45:26 -07:00
parent 687b28d1d1
commit 93d0cfe5b8
6 changed files with 6 additions and 8 deletions

View File

@ -23,13 +23,13 @@ use std::io::{Read, Write};
use std::process::exit; use std::process::exit;
use std::default::Default; use std::default::Default;
pub mod language; mod language;
use language::{ProgrammingLanguageInterface, EvalOptions, LLVMCodeString};
mod webapp; mod webapp;
pub mod llvm_wrap; pub mod llvm_wrap;
include!(concat!(env!("OUT_DIR"), "/static.rs")); include!(concat!(env!("OUT_DIR"), "/static.rs"));
pub use language::{ProgrammingLanguageInterface, EvalOptions, ReplOutput, TraceArtifact, LLVMCodeString};
pub type PLIGenerator = Box<Fn() -> Box<ProgrammingLanguageInterface> + Send + Sync>; pub type PLIGenerator = Box<Fn() -> Box<ProgrammingLanguageInterface> + Send + Sync>;
pub fn schala_main(generators: Vec<PLIGenerator>) { pub fn schala_main(generators: Vec<PLIGenerator>) {

View File

@ -6,7 +6,7 @@ use self::llvm_sys::prelude::*;
use self::llvm_sys::{LLVMIntPredicate}; use self::llvm_sys::{LLVMIntPredicate};
use maaru_lang::parser::{AST, Statement, Function, Prototype, Expression, BinOp}; use maaru_lang::parser::{AST, Statement, Function, Prototype, Expression, BinOp};
use schala_lib::language::LLVMCodeString; use schala_lib::LLVMCodeString;
use schala_lib::llvm_wrap as LLVMWrap; use schala_lib::llvm_wrap as LLVMWrap;

View File

@ -3,7 +3,7 @@ pub mod parser;
pub mod eval; pub mod eval;
pub mod compilation; pub mod compilation;
use schala_lib::language::{ProgrammingLanguageInterface, EvalOptions, ReplOutput, TraceArtifact, LLVMCodeString}; use schala_lib::{ProgrammingLanguageInterface, EvalOptions, ReplOutput, TraceArtifact, LLVMCodeString};
#[derive(Debug)] #[derive(Debug)]
pub struct TokenError { pub struct TokenError {

View File

@ -13,7 +13,6 @@ mod robo_lang;
extern crate schala_lib; extern crate schala_lib;
use schala_lib::{PLIGenerator, schala_main}; use schala_lib::{PLIGenerator, schala_main};
use schala_lib::language::ProgrammingLanguageInterface;
#[link_args="-ltinfo"] #[link_args="-ltinfo"]
extern { } extern { }

View File

@ -1,6 +1,5 @@
use itertools::Itertools; use itertools::Itertools;
use schala_lib::{ProgrammingLanguageInterface, EvalOptions, ReplOutput};
use schala_lib::language::{ProgrammingLanguageInterface, EvalOptions, ReplOutput};
pub struct Robo { pub struct Robo {
} }

View File

@ -1,5 +1,5 @@
use itertools::Itertools; use itertools::Itertools;
use schala_lib::language::{ProgrammingLanguageInterface, EvalOptions, TraceArtifact, ReplOutput}; use schala_lib::{ProgrammingLanguageInterface, EvalOptions, TraceArtifact, ReplOutput};
mod parsing; mod parsing;
mod type_check; mod type_check;