use language::{ProgrammingLanguage, EvaluationMachine, ParseError, TokenError, LLVMCodeString}; mod parsing; pub struct Schala { } impl Schala { pub fn new() -> Schala { Schala { } } } impl ProgrammingLanguage for Schala { type Token = parsing::Token; type AST = parsing::AST; type Evaluator = SchalaEvaluator; fn name() -> String { "Schala".to_string() } fn tokenize(input: &str) -> Result, TokenError> { unimplemented!() } fn parse(input: Vec) -> Result { unimplemented!() } fn evaluate(ast: Self::AST, evaluator: &mut Self::Evaluator) -> Vec { unimplemented!() } fn compile(ast: Self::AST) -> LLVMCodeString { unimplemented!() } } pub struct SchalaEvaluator { } impl EvaluationMachine for SchalaEvaluator { fn new() -> SchalaEvaluator { SchalaEvaluator { } } fn set_option(&mut self, option: &str, value: bool) -> bool { false } }