Package picasso.parser
Class MinusAnalyzer
- java.lang.Object
-
- picasso.parser.MinusAnalyzer
-
- All Implemented Interfaces:
SemanticAnalyzerInterface
public class MinusAnalyzer extends Object implements SemanticAnalyzerInterface
Handles parsing the minus or "subtraction function".
-
-
Constructor Summary
Constructors Constructor Description MinusAnalyzer()
-
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
-
-