/** * 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); }
public int eval(IMyDictionary<string, int> table, IHeap<int, int> heap) { return heap.lookUp(table.lookUp(variableName)); }