Exemplo n.º 1
0
        public int Run(Storage storage)
        {
            var value = 0;
              foreach (var statement in expressions)
              {
            value = statement.Evaluate(storage);
              }

              return value;
        }
Exemplo n.º 2
0
 public Evaluator(Storage storage)
 {
     this.storage = storage ?? new Storage();
 }