From df51a1e04a6f12fee8146557bfb91547c7aedfe5 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 23 Mar 2018 19:04:32 -0700 Subject: [PATCH] rename schala_main -> repl_main --- schala-repl/src/lib.rs | 3 +-- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/schala-repl/src/lib.rs b/schala-repl/src/lib.rs index 948ff83..17f32c9 100644 --- a/schala-repl/src/lib.rs +++ b/schala-repl/src/lib.rs @@ -38,7 +38,7 @@ include!(concat!(env!("OUT_DIR"), "/static.rs")); pub use language::{LLVMCodeString, ProgrammingLanguageInterface, EvalOptions, ExecutionMethod, TraceArtifact, LanguageOutput, FinishedComputation, UnfinishedComputation}; pub type PLIGenerator = Box Box + Send + Sync>; -pub fn schala_main(generators: Vec) { +pub fn repl_main(generators: Vec) { let languages: Vec> = generators.iter().map(|x| x()).collect(); let option_matches = program_options().parse(std::env::args()).unwrap_or_else(|e| { @@ -190,7 +190,6 @@ impl Repl { let output = self.input_handler(input); println!("=> {}", output); } - _ => (), } } self.console.get_history().save(".schala_history").unwrap_or(()); diff --git a/src/main.rs b/src/main.rs index a37196b..70b8351 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ extern crate maaru_lang; extern crate rukka_lang; extern crate robo_lang; extern crate schala_lang; -use schala_repl::{PLIGenerator, schala_main}; +use schala_repl::{PLIGenerator, repl_main}; extern { } @@ -15,6 +15,6 @@ fn main() { Box::new(|| { Box::new(robo_lang::Robo::new())}), Box::new(|| { Box::new(rukka_lang::Rukka::new())}), ]; - schala_main(generators); + repl_main(generators); }