Package picasso.parser
Class ConstantAnalyzer
java.lang.Object
picasso.parser.ConstantAnalyzer
- All Implemented Interfaces:
SemanticAnalyzerInterface
Analyzer for a constant, must be between [-1, 1]
- Author:
- Sara Sprenkle
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateExpressionTree
(Stack<Token> tokens) static ConstantAnalyzer
-
Field Details
-
singleton
-
-
Constructor Details
-
ConstantAnalyzer
public ConstantAnalyzer()
-
-
Method Details
-
getInstance
-
generateExpressionTree
- Specified by:
generateExpressionTree
in interfaceSemanticAnalyzerInterface
- Parameters:
tokens
- in postfix order- Returns:
- the root node for the expression represented by the top token
-