From 29293620467ee206ad1f70239c80a9166198d1b9 Mon Sep 17 00:00:00 2001 From: greg Date: Thu, 14 Mar 2019 03:42:39 -0700 Subject: [PATCH] Change NewRepl -> Repl --- schala-repl/src/lib.rs | 2 +- schala-repl/src/repl/mod.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/schala-repl/src/lib.rs b/schala-repl/src/lib.rs index c7d95e6..35e609f 100644 --- a/schala-repl/src/lib.rs +++ b/schala-repl/src/lib.rs @@ -44,7 +44,7 @@ pub fn start_repl(langs: Vec>) { match options.free[..] { [] | [_] => { - let mut repl = repl::NewRepl::new(langs); + let mut repl = repl::Repl::new(langs); repl.run_repl(); } [_, ref filename, _..] => { diff --git a/schala-repl/src/repl/mod.rs b/schala-repl/src/repl/mod.rs index 7fdcffb..62c3314 100644 --- a/schala-repl/src/repl/mod.rs +++ b/schala-repl/src/repl/mod.rs @@ -12,19 +12,19 @@ use self::command_tree::CommandTree; const HISTORY_SAVE_FILE: &'static str = ".schala_history"; const OPTIONS_SAVE_FILE: &'static str = ".schala_repl"; -pub struct NewRepl { +pub struct Repl { interpreter_directive_sigil: char, line_reader: ::linefeed::interface::Interface<::linefeed::terminal::DefaultTerminal>, language_states: Vec>, } -impl NewRepl { - pub fn new(initial_states: Vec>) -> NewRepl { +impl Repl { + pub fn new(initial_states: Vec>) -> Repl { use linefeed::Interface; let line_reader = Interface::new("schala-repl").unwrap(); let interpreter_directive_sigil = ':'; - NewRepl { + Repl { interpreter_directive_sigil, line_reader, language_states: initial_states, } }