using System.Collections.Generic;
using CodingSeb.ExpressionEvaluator;
public static void Main()
ExpressionEvaluator evaluator = new ExpressionEvaluator();
evaluator.Variables["a"] = 1;
evaluator.Variables["b"] = 2;
evaluator.Variables["c"] = new SubExpression("a+b");
evaluator.Variables["d"] = new SubExpression("c+3");
evaluator.Variables["e"] = "c+3";
List<string> expressions = new List<string>()
expressions.ForEach(expression =>
Console.WriteLine(expression);
Console.WriteLine(evaluator.Evaluate(expression));
Console.WriteLine(string.Empty);