schala/src/main.rs

29 lines
660 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;
mod schala_lang;
mod maaru_lang;
2017-08-29 00:28:19 -07:00
mod robo_lang;
mod rukka_lang;
2017-10-30 20:06:20 -07:00
extern crate schala_lib;
use schala_lib::{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);
}