picasso.parser
Class PlusAnalyzer

java.lang.Object
  extended by picasso.parser.PlusAnalyzer
All Implemented Interfaces:
SemanticAnalyzerInterface

public class PlusAnalyzer
extends java.lang.Object
implements SemanticAnalyzerInterface

Handles parsing the plus or "addition function".

Author:
Sara Sprenkle

Constructor Summary
PlusAnalyzer()
           
 
Method Summary
 ExpressionTreeNode generateExpressionTree(java.util.Stack<Token> tokens)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlusAnalyzer

public PlusAnalyzer()
Method Detail

generateExpressionTree

public ExpressionTreeNode generateExpressionTree(java.util.Stack<Token> tokens)
Specified by:
generateExpressionTree in interface SemanticAnalyzerInterface
Parameters:
tokens - , in postfix order
Returns:
the root node for the expression represented by the top token