/**
  * Evaluate the variable by getting its value from the Table
  * @param table Table of values
  * @return int value
  */
 public int eval(IMyDictionary<string, int> table, IHeap<int, int> heap)
 {
     return table.lookUp(name);
 }
Example #2
0
 public int eval(IMyDictionary<string, int> table, IHeap<int, int> heap)
 {
     return heap.lookUp(table.lookUp(variableName));
 }