picasso.parser
Class MultiplyAnalyzer

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

public class MultiplyAnalyzer
extends java.lang.Object
implements SemanticAnalyzerInterface

Handles parsing the Multiply or "multiplication function".

Author:
Samuel Reed

Constructor Summary
MultiplyAnalyzer()
           
 
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

MultiplyAnalyzer

public MultiplyAnalyzer()
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