public CommandLine(LanguageRuntime runtime, IConsoleAdaptor console = null) { Runtime = runtime; _console = console ?? new ConsoleAdapter(); var grammar = runtime.Language.Grammar; Title = grammar.ConsoleTitle; Greeting = grammar.ConsoleGreeting; Prompt = grammar.ConsolePrompt; PromptMoreInput = grammar.ConsolePromptMoreInput; App = new ScriptApp(Runtime); App.ParserMode = ParseMode.CommandLine; // App.PrintParseErrors = false; App.RethrowExceptions = false; }
public CommandLine(LanguageRuntime runtime, IConsoleAdaptor console = null) { Runtime = runtime; _console = console ?? new ConsoleAdapter(); var grammar = runtime.Language.Grammar; Title = grammar.ConsoleTitle; Greeting = grammar.ConsoleGreeting; Prompt = grammar.ConsolePrompt; PromptMoreInput = grammar.ConsolePromptMoreInput; App = new ScriptApp(Runtime); App.ParserMode = ParseMode.CommandLine; // App.PrintParseErrors = false; App.RethrowExceptions = false; }