Added UserData support
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Text;
|
||||
using Upsilon;
|
||||
using Upsilon.Evaluator;
|
||||
@@ -17,7 +18,6 @@ namespace Ycicle
|
||||
Console.Write("» ");
|
||||
var input = Console.ReadLine();
|
||||
if (input == "exit") return;
|
||||
|
||||
script = script == null ? new Script(input) : Script.ContinueWith(script, input);
|
||||
|
||||
if (script.Diagnostics.Messages.Count > 0)
|
||||
@@ -32,8 +32,8 @@ namespace Ycicle
|
||||
continue;
|
||||
}
|
||||
//Console.WriteLine(script.PrettyPrintSyntaxTree());
|
||||
var evaluate = script.Evaluate<double>();
|
||||
|
||||
var evaluate = script.Evaluate();
|
||||
if (script.Diagnostics.Messages.Count > 0)
|
||||
{
|
||||
Console.ForegroundColor = ConsoleColor.Red;
|
||||
|
||||
Reference in New Issue
Block a user