Beispiel #1
0
        static void Main(string[] args)
        {
            var uContext = new UpdatedContext("10+5-3+10");

            var cal = new Calculator("a+b-c+a");
            var c   = cal.Calculate();

            Console.WriteLine(c);
            Console.ReadKey();
        }
 public override void Interpret(UpdatedContext context)
 {
 }
 public override void Interpret(UpdatedContext context)
 {
     right = context.GetCurrentNumber();
 }
 public override void Interpret(UpdatedContext context)
 {
     throw new NotImplementedException();
 }
 public abstract void Interpret(UpdatedContext context);