Better handling of Static Scope

This commit is contained in:
2018-11-23 13:28:11 +01:00
parent 95f76bc5e3
commit d6e18d9b0c
5 changed files with 71 additions and 29 deletions

View File

@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using Upsilon;
using Upsilon.Evaluator;
@@ -14,7 +13,7 @@ namespace Ycicle
{
Console.WriteLine("Upsilon REPL");
Script script = null;
var (evaluationScope, boundScope) = StandardLibrary.Create();
var (evaluationScope, boundScope) = StaticScope.CreateStandardLibrary();
while (true)
{
@@ -101,7 +100,7 @@ namespace Ycicle
}
else
{
sb.Append(o.ToString());
sb.Append(o);
}
return sb.ToString();