Package picasso.parser
Class BinaryFunctionAnalyzer
- java.lang.Object
-
- picasso.parser.BinaryFunctionAnalyzer
-
- All Implemented Interfaces:
SemanticAnalyzerInterface
- Direct Known Subclasses:
PerlinBWAnalyzer,PerlinColorAnalyzer
public abstract class BinaryFunctionAnalyzer extends Object implements SemanticAnalyzerInterface
Abstract class that parses a function that takes two expressions as parameters.
-
-
Constructor Summary
Constructors Constructor Description BinaryFunctionAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionTreeNodegenerateExpressionTree(Stack<Token> tokens)the method is meant to only instantiate xExp and yExp for child classes to access.
-
-
-
Method Detail
-
generateExpressionTree
public ExpressionTreeNode generateExpressionTree(Stack<Token> tokens)
the method is meant to only instantiate xExp and yExp for child classes to access. Method should be overriden by all child classes to change the return value.- Specified by:
generateExpressionTreein interfaceSemanticAnalyzerInterface- Parameters:
tokens-- Returns:
- null
-
-