Import Maaru into main
This commit is contained in:
parent
8fd5fb5a0b
commit
f83cece2b4
@ -1,7 +1,12 @@
|
|||||||
use language::{ProgrammingLanguage, EvaluationMachine, ParseError, TokenError, LLVMCodeString};
|
use language::{ProgrammingLanguage, EvaluationMachine, ParseError, TokenError, LLVMCodeString};
|
||||||
|
|
||||||
pub struct Maaru {
|
pub struct Maaru {
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Maaru {
|
||||||
|
pub fn new() -> Maaru {
|
||||||
|
Maaru { }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct MaaruEvaluator {
|
pub struct MaaruEvaluator {
|
||||||
|
@ -22,7 +22,11 @@ mod llvm_wrap;
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
let languages: Vec<Box<LanguageInterface>> = vec![Box::new((Schala::new(), SchalaEvaluator::new(None)))];
|
let languages: Vec<Box<LanguageInterface>> =
|
||||||
|
vec![
|
||||||
|
Box::new((Schala::new(), SchalaEvaluator::new(None))),
|
||||||
|
Box::new((maaru_lang::Maaru::new(), maaru_lang::MaaruEvaluator::new())),
|
||||||
|
];
|
||||||
|
|
||||||
let option_matches =
|
let option_matches =
|
||||||
match program_options().parse(std::env::args()) {
|
match program_options().parse(std::env::args()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user