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