using System.Collections.Generic;
using CodingSeb.ExpressionEvaluator;
public static void Main()
ExpressionEvaluator evaluator = new ExpressionEvaluator();
evaluator.Variables = new Dictionary<string, object>()
{ "myVar", "Hello World" },
{ "myArray", new object[] { 3.5, "Test", false } },
{ "Add", new Func<int,int,int>((x, y) => x + y)},
{ "SayHelloTo", new Action<string>(name => Console.WriteLine("Hello " + name + " !!!"))},
List<string> expressions = new List<string>()
expressions.ForEach(expression =>
Console.WriteLine(expression);
Console.WriteLine(evaluator.Evaluate(expression));
Console.WriteLine(string.Empty);