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 simple variable assignment #44

Open Tientuine opened 1 year ago

Tientuine commented 1 year ago

@Marist-CMPT331-TOPL/students

The interpreter should be able to handle basic variable assignment using identifiers, by implementing the corresponding semantic rule(s) to modify the free store.

  1. [ ] Add a case to resultOf for AssignmentStmt. This should work very much like the AssignExp and AssignStmt implementation in the HOPL languages that include these.