Package picasso.parser
Class MultiplicationAnalyzer
- java.lang.Object
-
- picasso.parser.MultiplicationAnalyzer
-
- All Implemented Interfaces:
SemanticAnalyzerInterface
public class MultiplicationAnalyzer extends Object implements SemanticAnalyzerInterface
Handles parsing the multiplication operator ("*").
-
-
Constructor Summary
Constructors Constructor Description MultiplicationAnalyzer()
-
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
- Parameters:
tokens
- in postfix order- Returns:
- the root node for the expression represented by the top token
-
-