Package picasso.parser
Class UnaryFunctionAnalyzer
java.lang.Object
picasso.parser.UnaryFunctionAnalyzer
- All Implemented Interfaces:
SemanticAnalyzerInterface
- Direct Known Subclasses:
FloorAnalyzer
Parses a function that takes one expression as a parameter.
XXX: Not sure if this class is necessary.
- Author:
- Sara Sprenkle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ExpressionTreeNode
generateExpressionTree
(Stack<Token> tokens)
-
Constructor Details
-
UnaryFunctionAnalyzer
public UnaryFunctionAnalyzer()
-
-
Method Details
-
generateExpressionTree
- Specified by:
generateExpressionTree
in interfaceSemanticAnalyzerInterface
- Parameters:
tokens
- in postfix order- Returns:
- the root node for the expression represented by the top token
-