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, } }