Package picasso.parser
Class MinusAnalyzer
- java.lang.Object
-
- picasso.parser.BinaryOperationAnalyzer
-
- picasso.parser.MinusAnalyzer
-
- All Implemented Interfaces:
SemanticAnalyzerInterface
public class MinusAnalyzer extends BinaryOperationAnalyzer
Handles parsing the subtraction token.
-
-
Constructor Summary
Constructors Constructor Description MinusAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExpressionTreeNodenewBinaryNode(ExpressionTreeNode left, ExpressionTreeNode right)Specifies how to generate a new node for Subtraction-
Methods inherited from class picasso.parser.BinaryOperationAnalyzer
generateExpressionTree
-
-
-
-
Method Detail
-
newBinaryNode
protected ExpressionTreeNode newBinaryNode(ExpressionTreeNode left, ExpressionTreeNode right)
Specifies how to generate a new node for Subtraction- Specified by:
newBinaryNodein classBinaryOperationAnalyzer- Parameters:
left- the first numberright- the second number- Returns:
- a node containing this function applied to the input
-
-