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