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.


Constructor Index

 o ASTAbsNode(int)

Method Index

 o interpret()
Interpret (evaluate) the child of this node and replace the top of the stack with its absolute value.

Constructors

 o ASTAbsNode
 public ASTAbsNode(int id)

Methods

 o 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