Package picasso.parser
Class TanAnalyzer
- java.lang.Object
-
- picasso.parser.UnaryFunctionAnalyzer
-
- picasso.parser.TanAnalyzer
-
- All Implemented Interfaces:
SemanticAnalyzerInterface
public class TanAnalyzer extends UnaryFunctionAnalyzer
Handles parsing the tan function
-
-
Constructor Summary
Constructors Constructor Description TanAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionTreeNode
generateExpressionTree(Stack<Token> tokens)
-
-
-
Method Detail
-
generateExpressionTree
public ExpressionTreeNode generateExpressionTree(Stack<Token> tokens)
- Specified by:
generateExpressionTree
in interfaceSemanticAnalyzerInterface
- Specified by:
generateExpressionTree
in classUnaryFunctionAnalyzer
- Parameters:
tokens
- in postfix order- Returns:
- the root node for the expression represented by the top token
-
-