Exception throwing when required, and fixes for unit tests
This commit is contained in:
@@ -13,7 +13,10 @@ namespace Ycicle
|
||||
{
|
||||
Console.WriteLine("Upsilon REPL");
|
||||
Script script = null;
|
||||
var (evaluationScope, boundScope) = StaticScope.CreateStandardLibrary();
|
||||
var options = new ScriptOptions()
|
||||
{
|
||||
ThrowExceptionOnError = false
|
||||
};
|
||||
|
||||
while (true)
|
||||
{
|
||||
@@ -21,7 +24,7 @@ namespace Ycicle
|
||||
var input = Console.ReadLine();
|
||||
if (input == "exit") return;
|
||||
script = script == null
|
||||
? Executor.ParseInput(input)
|
||||
? Executor.ParseInput(input, options)
|
||||
: Executor.ContinueWith(script, input);
|
||||
|
||||
if (script.Diagnostics.Messages.Count > 0)
|
||||
|
||||
Reference in New Issue
Block a user