From 6e28ae68a06ed4cba48ebcf04052ce8917cf6324 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 3 Feb 2017 10:30:00 -0800 Subject: [PATCH] Add options --- src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index efce35a..0f3273a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -184,7 +184,13 @@ impl Repl { fn input_handler(&mut self, input: &str) -> String { let ref mut language = self.languages[self.current_language_index]; - language.evaluate_in_repl(input, language::LanguageInterfaceOptions::default()) + + let mut options = language::LanguageInterfaceOptions::default(); + options.show_tokens = self.show_tokens; + options.show_parse = self.show_parse; + options.show_llvm_ir = self.show_llvm_ir; + + language.evaluate_in_repl(input, options) } fn handle_interpreter_directive(&mut self, input: &str) -> bool {