Esempio n. 1
0
 public int evaluate(ISymbolTable <string, int> s)
 {
     if (s.contains(this.name))
     {
         return(s.getValue(this.name));
     }
     else
     {
         throw new IException("no such variable " + this.name);
     }
 }