Class ASTNegativeNode
java.lang.Object
|
+----SimpleNode
|
+----ASTNegativeNode
- public class ASTNegativeNode
- extends SimpleNode
A node on the parse tree that negates the current value
-
ASTNegativeNode(int)
-
-
interpret()
- Interpret (evaluate) the child of this node and replace the top
of the stack with its negative
ASTNegativeNode
public ASTNegativeNode(int id)
interpret
public void interpret()
- Interpret (evaluate) the child of this node and replace the top
of the stack with its negative
- Overrides:
- interpret in class SimpleNode