Question: ( b ) Write a strict leftmost reverse derivation to show that the sentence aa + aa * cannot be generated by the grammar in

(b) Write a strict leftmost reverse derivation to show that the sentence aa+aa* cannot be generated by the grammar in part (a). Next, write a mixed reverse derivation, trying to go as far as possible... In both cases, indicate precisely how it stops and what the syntax error is. Explain briefly whether, in general, one approach is better than the other. (3 marks)

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 Programming Questions!