Question: 1. Consider the grammar. S CABb AaA (1) (2) (3) A Bd Be (4) B ABC! (5) B & (6) (7) C Ca CE (8)

 1. Consider the grammar. S CABb AaA (1) (2) (3) A

1. Consider the grammar. S CABb AaA (1) (2) (3) A Bd Be (4) B ABC! (5) B & (6) (7) C Ca CE (8) where S, A, B, and C are the non-terminals, S is the start symbol, and a, b, d, e, '&' and ' are the terminals. 1.1. FIRST sets. Do the following 1.1.1.Do an initialization pass by applying FIRST sets rules I and II. Show the resulting FIRST sets 1.1.2.Do one pass on the grammar rules in the order in which they are listed as follows. For each grammar rules, apply FIRST set rule III, then apply FIRST set rule IV then apply FIRST set rule V. Show the resulting FIRST sets after this one pass. 1.1.3. Show the final result of the calculation of the FIRST sets

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!