diff --git a/schala-repl/src/repl/help.rs b/schala-repl/src/repl/help.rs index 68b32a0..ebf8b29 100644 --- a/schala-repl/src/repl/help.rs +++ b/schala-repl/src/repl/help.rs @@ -15,6 +15,7 @@ pub fn help(repl: &mut Repl, arguments: &[&str]) -> InterpreterDirectiveOutput { let mut buf = String::new(); writeln!(buf, "`{}` - {}", dir.get_cmd(), dir.get_help()).unwrap(); buf + } }) } } diff --git a/schala-repl/src/repl/mod.rs b/schala-repl/src/repl/mod.rs index c9e5368..c05ff69 100644 --- a/schala-repl/src/repl/mod.rs +++ b/schala-repl/src/repl/mod.rs @@ -25,26 +25,19 @@ pub struct Repl { line_reader: ::linefeed::interface::Interface<::linefeed::terminal::DefaultTerminal>, language_states: Vec>, options: ReplOptions, - directives: CommandTree, } impl Repl { - pub fn new(mut initial_states: Vec>) -> Repl { + pub fn new(initial_states: Vec>) -> Repl { use linefeed::Interface; let line_reader = Interface::new("schala-repl").unwrap(); let interpreter_directive_sigil = ':'; - let pass_names = match initial_states[0].request_meta(LangMetaRequest::StageNames) { - LangMetaResponse::StageNames(names) => names, - _ => vec![], - }; - Repl { interpreter_directive_sigil, line_reader, language_states: initial_states, options: ReplOptions::new(), - directives: directives_from_pass_names(&pass_names) } }