Class ASTSqrtNode

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

public class ASTSqrtNode
extends SimpleNode
A node on the parse tree that calculates the square root


Constructor Index

 o ASTSqrtNode(int)

Method Index

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

Constructors

 o ASTSqrtNode
 public ASTSqrtNode(int id)

Methods

 o interpret
 public void interpret()
Interpret (evaluate) the child of this node and replace the top of the stack with its square root

Overrides:
interpret in class SimpleNode