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 logical operators and operands. Note: Any combinations not covered by what you implement will simply be undefined.
[ ] Logical Conjunction - initially only for Boolean values, perform the usual logical AND operation
[ ] Logical Disjunction - initially only for Boolean values, perform the usual inclusive OR 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, where we determine the "truthiness" of each operand and then return an appropriate result.
@Marist-CMPT331-TOPL/students Depends on #35
Add cases to
valueOfBop
for each of the valid combinations of logical operators and operands. Note: Any combinations not covered by what you implement will simply beundefined
.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, where we determine the "truthiness" of each operand and then return an appropriate result.