slogo.expression
Class Subtraction

java.lang.Object
  extended by slogo.language.GrammarElement
      extended by slogo.expression.Expression
          extended by slogo.expression.BinaryExpression
              extended by slogo.expression.Subtraction

public class Subtraction
extends BinaryExpression


Field Summary
 
Fields inherited from class slogo.expression.BinaryExpression
myLeft, myRight, mySymbol
 
Fields inherited from class slogo.language.GrammarElement
gelementsToValue
 
Constructor Summary
Subtraction(Expression lhs, Expression rhs)
           
 
Method Summary
 double value(Context c)
           
 
Methods inherited from class slogo.expression.BinaryExpression
leftValue, rightValue, toString
 
Methods inherited from class slogo.expression.Expression
evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Subtraction

public Subtraction(Expression lhs,
                   Expression rhs)
Method Detail

value

public double value(Context c)
Specified by:
value in class Expression