public static void Main() { // ((10 + 20) + 30) Expr expr = new Plus( new Plus( new Constant(10), new Constant(20)), new Constant(30)); Console.WriteLine(expr.Interpret()); }
public void PlusInterpretTest() { Assert.AreEqual("8", p.Interpret().ToString()); }