Question: The equivalence of for and while loops, mentioned in Example 6 . 6 4 , is not precise. Give an example in which it breaks

The equivalence of for and while loops, mentioned in Example 6.64, is not precise. Give an example in which it breaks down. Hint: think about the continue statement.
condition -> c term | condition or c term
c term -> c factor | c term and c factor
c factor -> ident relation ident |( condition )| not ( condition ) relation -><|<=|=|<>|>|>=
You may assume that the code attribute has already been initialized for other stmt and ident nodes. (For hints, see Fischer et al.s compiler book [FCL10, Sec. 14.1.4].)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!