General fixes for Tests
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Diagnostics;
|
||||
using System.Text;
|
||||
using Upsilon;
|
||||
using Upsilon.Evaluator;
|
||||
using Upsilon.StandardLibraries;
|
||||
|
||||
namespace Ycicle
|
||||
{
|
||||
@@ -13,12 +14,16 @@ namespace Ycicle
|
||||
{
|
||||
Console.WriteLine("Upsilon REPL");
|
||||
Script script = null;
|
||||
var (evaluationScope, boundScope) = StandardLibrary.Create();
|
||||
|
||||
while (true)
|
||||
{
|
||||
Console.Write("» ");
|
||||
var input = Console.ReadLine();
|
||||
if (input == "exit") return;
|
||||
script = script == null ? new Script(input) : Script.ContinueWith(script, input);
|
||||
script = script == null
|
||||
? new Script(input, boundScope.Variables, evaluationScope.Variables)
|
||||
: Script.ContinueWith(script, input);
|
||||
|
||||
if (script.Diagnostics.Messages.Count > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user