Example #1
0
        public override int Eval(com.IDict <string, int> dict, com.IDict <int, int> heap)
        {
            int key;
            int val;

            try
            {
                key = dict.Get(var);
            }
            catch (VariableNotFoundException e)
            {
                throw e;
            }

            try
            {
                val = heap.Get(key);
            }
            catch (VariableNotFoundException e)
            {
                throw e;
            }
            return(val);
        }