Computer Science And Engineering

Computer Science And EngineeringCompiler DesignMultiple Select (MSQ)2 Marks
Q1.

Which of the following statement(s) is/are TRUE while computing FirstFirst and FollowFollow during top down parsing by a compiler?

A
For a production AϵA \to \epsilon, ϵ\epsilon will be added to First(A)First(A).
B
If there is any input right end marker, it will be added to First(S)First(S), where SS is the start symbol.
C
For a production AϵA \to \epsilon, ϵ\epsilon will be added to Follow(A)Follow(A).
D
If there is any input right end marker, it will be added to Follow(S)Follow(S), where SS is the start symbol.
NEXT NODE