Package memely
Interface Expression
public interface Expression
An immutable data type representing an image expression, as defined
in the PS3 handout.
PS3 instructions: this is a required ADT interface. You MUST NOT change its name or package or the names or type signatures of existing methods. You may, however, add additional methods, or strengthen the specs of existing methods. Declare concrete variants of Expression in their own Java source files.
-
Method Details
-
parse
- Parameters:
input
- expression to parse, as defined in the PS3 handout- Returns:
- expression AST for the input
- Throws:
IllegalArgumentException
- if the expression is syntactically invalid.
-
toString
-
equals
-
hashCode
-