Class ASTNegativeNode

java.lang.Object
   |
   +----SimpleNode
           |
           +----ASTNegativeNode

public class ASTNegativeNode
extends SimpleNode
A node on the parse tree that negates the current value


Constructor Index

 o ASTNegativeNode(int)

Method Index

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

Constructors

 o ASTNegativeNode
 public ASTNegativeNode(int id)

Methods

 o 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