schala/src/main.rs

30 lines
672 B
Rust
Raw Normal View History

#![feature(advanced_slice_patterns, slice_patterns, box_patterns, box_syntax)]
#![feature(plugin)]
2017-09-18 19:09:27 -07:00
extern crate itertools;
2017-09-07 19:38:22 -07:00
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate maplit;
2018-03-20 23:29:56 -07:00
extern crate maaru_lang;
mod schala_lang;
2017-08-29 00:28:19 -07:00
mod robo_lang;
mod rukka_lang;
2018-03-20 21:17:46 -07:00
extern crate schala_repl;
use schala_repl::{PLIGenerator, schala_main};
2017-10-12 02:13:55 -07:00
extern { }
2015-07-16 01:40:37 -07:00
fn main() {
2017-10-29 04:09:10 -07:00
let generators: Vec<PLIGenerator> = vec![
2017-11-01 01:25:26 -07:00
Box::new(|| { Box::new(schala_lang::Schala::new())}),
Box::new(|| { Box::new(maaru_lang::Maaru::new())}),
Box::new(|| { Box::new(robo_lang::Robo::new())}),
Box::new(|| { Box::new(rukka_lang::Rukka::new())}),
2017-10-29 04:09:10 -07:00
];
schala_main(generators);
}