IUCompilerCourse / python-student-support-code

Support for for students (Python)
MIT License
57 stars 38 forks source link

fix handling of positive offsets for deref #5

Closed temyurchenko closed 2 years ago

temyurchenko commented 2 years ago

the issue was that 'int_a' label was assigned to trees with different meanings. One, was a tree that has the int value immediately available and the other---contains the other 'int_a' tree.

The fix was to remove this double 'int_a' tree. This way, we can handle all 'int_a' trees as if they have the value immediately.

The rest of the changes is removing stray, extra whitespaces

temyurchenko commented 2 years ago

I can add a test for the evaluator for this case, but I don't see any in the repo. How are they supposed to be done?