picasso.parser
Class AbsAnalyzer

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

public class AbsAnalyzer
extends UnaryFunctionAnalyzer

Handles parsing the absolute value function.

Author:
Samuel Reed

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

AbsAnalyzer

public AbsAnalyzer()
Method Detail

generateExpressionTree

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