SPCC Writeup 1
SPCC Writeup 1
Learning Objective: Student should be able to Compute First () and Follow () set of given grammar.
Theory:
Original grammar:
E E+E
E E*E
E (E)
E id
E E+T
T T*F
F (E)
F id
E TE'
E' +TE'|
T FT'
T' *FT'|
F (E)
F id
Step 3: Find First & Follow set to construct predictive parser table:-
Example:
E TE'
E' +TE'|
T FT'
T' *FT'|
F (E)
F id
Design:
Result and Discussion:
Course Outcomes: Upon completion of the course students will be able to analyze the analysis
and synthesis phase of compiler for writhing application programs and construct different parsers for
given context free grammars.
Conclusion:
Marks
Obtained