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. * @author Ayman Chowdhury
-
-
Constructor Summary
Constructors Constructor Description TanAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionTreeNodegenerateExpressionTree(Stack<Token> tokens)Generates the expression tree for the tan function.
-
-
-
Method Detail
-
generateExpressionTree
public ExpressionTreeNode generateExpressionTree(Stack<Token> tokens)
Generates the expression tree for the tan function. * @param tokens the stack of tokens in postfix order- Specified by:
generateExpressionTreein interfaceSemanticAnalyzerInterface- Specified by:
generateExpressionTreein classUnaryFunctionAnalyzer- Parameters:
tokens- in postfix order- Returns:
- the ExpressionTreeNode representing the tan function
-
-