Make schala-lib::language private and reexport
This commit is contained in:
parent
9545130fd3
commit
66e3de41dd
@ -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>) {
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
@ -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 { }
|
||||||
|
@ -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 {
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user