Better handling of Static Scope
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user