From 8a5b8619fae973ae285468ed8a9f9ecf0a9a1117 Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 29 Apr 2018 22:53:17 -0700 Subject: [PATCH] Kill old execute method --- schala-repl/src/language.rs | 3 --- schala-repl/src/lib.rs | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/schala-repl/src/language.rs b/schala-repl/src/language.rs index c844ba3..e28e7b5 100644 --- a/schala-repl/src/language.rs +++ b/schala-repl/src/language.rs @@ -173,9 +173,6 @@ pub trait ProgrammingLanguageInterface { FinishedComputation { artifacts: HashMap::new(), text_output: Err(format!("Execution pipeline not done")) } } - fn execute(&mut self, _input: &str, _eval_options: &EvalOptions) -> FinishedComputation { - FinishedComputation { artifacts: HashMap::new(), text_output: Err(format!("REPL evaluation not implemented")) } - } fn get_language_name(&self) -> String; fn get_source_file_suffix(&self) -> String; fn handle_custom_interpreter_directives(&mut self, _commands: &Vec<&str>) -> Option { diff --git a/schala-repl/src/lib.rs b/schala-repl/src/lib.rs index 772496f..6feb2ee 100644 --- a/schala-repl/src/lib.rs +++ b/schala-repl/src/lib.rs @@ -119,7 +119,7 @@ fn run_noninteractive(filename: &str, languages: Vec { - let output = language.execute(&buffer, &options); + let output = language.execute_pipeline(&buffer, &options); output.to_noninteractive().map(|text| println!("{}", text)); } } @@ -210,9 +210,6 @@ impl Repl { fn input_handler(&mut self, input: &str) -> String { let ref mut language = self.languages[self.current_language_index]; - /* - let interpreter_output = language.execute(input, &self.options); - */ let interpreter_output = language.execute_pipeline(input, &self.options); interpreter_output.to_repl() }