Package picasso.parser
Class PlusAnalyzer
- java.lang.Object
-
- picasso.parser.OperationAnalyzer
-
- picasso.parser.PlusAnalyzer
-
- All Implemented Interfaces:
SemanticAnalyzerInterface
public class PlusAnalyzer extends OperationAnalyzer implements SemanticAnalyzerInterface
Handles parsing the plus or "addition function".
-
-
Constructor Summary
Constructors Constructor Description PlusAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionTreeNodegenerateExpressionTree(Stack<Token> tokens)the method is meant to only instantiate leftTree and rightTree for child classes to access.
-
-
-
Method Detail
-
generateExpressionTree
public ExpressionTreeNode generateExpressionTree(Stack<Token> tokens)
Description copied from class:OperationAnalyzerthe method is meant to only instantiate leftTree and rightTree for child classes to access. Method should be overriden by all child classes to change the return value.- Specified by:
generateExpressionTreein interfaceSemanticAnalyzerInterface- Overrides:
generateExpressionTreein classOperationAnalyzer- Parameters:
tokens- in postfix order- Returns:
- null
-
-