schala/src/main.rs

30 lines
831 B
Rust
Raw Normal View History

#![feature(link_args)]
#![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;
2017-10-30 20:06:20 -07:00
extern crate schala_lib;
use schala_lib::{PLIGenerator, schala_main};
use schala_lib::language::ProgrammingLanguageInterface;
2017-10-12 02:13:55 -07:00
#[link_args="-ltinfo"]
extern { }
2015-07-16 01:40:37 -07:00
fn main() {
2017-10-29 04:09:10 -07:00
let generators: Vec<PLIGenerator> = vec![
Box::new(|| { let x: Box<ProgrammingLanguageInterface> = Box::new(schala_lang::Schala::new()); x }),
Box::new(|| { let x: Box<ProgrammingLanguageInterface> = Box::new(maaru_lang::Maaru::new()); x }),
Box::new(|| { let x: Box<ProgrammingLanguageInterface> = Box::new(robo_lang::Robo::new()); x }),
];
schala_main(generators);
}