picasso.parser
Class StringAnalyzer

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

public class StringAnalyzer
extends java.lang.Object
implements SemanticAnalyzerInterface

SemanticAnalyzer for a PicassoString

Author:
David Margolies

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

StringAnalyzer

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