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