Class ASTAddNode

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

public class ASTAddNode
extends SimpleNode
A node on the parse tree that adds the two values below it.


Constructor Index

 o ASTAddNode(int)

Method Index

 o interpret()
Interpret (evaluate) the two children of this node and replace the top of the stack with their sum.

Constructors

 o ASTAddNode
 public ASTAddNode(int id)

Methods

 o interpret
 public void interpret()
Interpret (evaluate) the two children of this node and replace the top of the stack with their sum.

Overrides:
interpret in class SimpleNode