Class ASTSubtractNode
java.lang.Object
|
+----SimpleNode
|
+----ASTSubtractNode
- public class ASTSubtractNode
- extends SimpleNode
A node on the parse tree that subtracts two values
-
ASTSubtractNode(int)
-
-
interpret()
- Interpret (evaluate) the children of this node and replace the top
of the stack with their difference.
ASTSubtractNode
public ASTSubtractNode(int id)
interpret
public void interpret()
- Interpret (evaluate) the children of this node and replace the top
of the stack with their difference.
- Overrides:
- interpret in class SimpleNode