This commit is contained in:
greg 2019-03-13 20:07:41 -07:00
parent 7360e698dd
commit 70f715fbb2

View File

@ -20,13 +20,13 @@ pub struct NewRepl {
} }
impl NewRepl { impl NewRepl {
pub fn new(languages: Vec<Box<ProgrammingLanguageInterface>>) -> NewRepl { pub fn new(initial_states: Vec<Box<ProgrammingLanguageInterface>>) -> NewRepl {
use linefeed::Interface; use linefeed::Interface;
let line_reader = Interface::new("schala-repl").unwrap(); let line_reader = Interface::new("schala-repl").unwrap();
let interpreter_directive_sigil = ':'; let interpreter_directive_sigil = ':';
NewRepl { NewRepl {
interpreter_directive_sigil, line_reader, language_states interpreter_directive_sigil, line_reader, language_states: initial_states,
} }
} }