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 tangent 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)
Generates the expression tree for the tangent function.
-
-
-
Method Detail
-
generateExpressionTree
public ExpressionTreeNode generateExpressionTree(Stack<Token> tokens)
Generates the expression tree for the tangent function.- Specified by:
generateExpressionTree
in interfaceSemanticAnalyzerInterface
- Specified by:
generateExpressionTree
in classUnaryFunctionAnalyzer
- Parameters:
tokens
- the stack of tokens to process- Returns:
- an ExpressionTreeNode representing the tangent function
-
-