picasso.parser
Class PerlinBWAnalyzer

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

public class PerlinBWAnalyzer
extends java.lang.Object
implements SemanticAnalyzerInterface

Handles parsing the PerlinBW function.

Author:
Samuel Reed

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

PerlinBWAnalyzer

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