Marist-CMPT331-TOPL / adder

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.
MIT License
0 stars 2 forks source link

Interpret membership operators #39

Open Tientuine opened 1 year ago

Tientuine commented 1 year ago

@Marist-CMPT331-TOPL/students Depends on #35 and collection types (lists, tuples, dictionaries, etc.).

Add cases to valueOfBop for each of the valid combinations of membership operator and operands. Note: Any combinations not covered by what you implement will simply be undefined.

Note: This can only be implemented for strings (i.e. substring) for now. Later, when at least one of lists, tuples, dictionaries, or sets is implemented, then we can extend this.