Open guacs opened 1 year ago
In the resulting evaluation.c of Chapter 7, the input of -5 would be evaluated to 5 instead of the expected -5. This is because the op is only evaluated within the while loop but in cases where there are no expr children, the loop is never entered.
evaluation.c
-5
5
In the resulting
evaluation.c
of Chapter 7, the input of-5
would be evaluated to5
instead of the expected-5
. This is because the op is only evaluated within the while loop but in cases where there are no expr children, the loop is never entered.