Adder is a small but usable subset of the Python language. It is named for the Blackadder comedy series, much as the Python language is named for Monty Python.
Add cases to valueOfBop for each of the valid combinations of comparison/identity operator and operands. Note: Any combinations not covered by what you implement will simply be undefined.
[x] Equal - two values should be considered equal if they are the same kind of expressed value and they contain values that are equal under Haskell == equality
[x] Not Equal - two values are not equal if they are not the same kind of expressed value, or if they are the same kind and the values they contain are not equal under the Haskell /= operation
[x] Is- two values should be considered equal if they are the same kind of expressed value and they contain values that are equal under Haskell == equality
[x] Is Not - two values are not equal if they are not the same kind of expressed value, or if they are the same kind and the values they contain are not equal under the Haskell /= operation
Note: This will serve as an initial implementation. Time permitting, we may tweak this later to make it more faithful to how Python does things.
@Marist-CMPT331-TOPL/students Depends on #35
Add cases to
valueOfBop
for each of the valid combinations of comparison/identity operator and operands. Note: Any combinations not covered by what you implement will simply beundefined
.==
equality/=
operation==
equality/=
operationNote: This will serve as an initial implementation. Time permitting, we may tweak this later to make it more faithful to how Python does things.