static void Main(string[] args) { Context context = new Context(); IExpression expr = context.Evaluate("1+2+3"); System.Console.WriteLine(expr.Interpret()); }
static void Main(string[] args) { Context context = new Context(); IExpression exp = context.Evaluate("1-2+31"); Console.WriteLine(exp.Interprete()); Console.ReadKey(); }