For a context-free grammar, FOLLOW(A) is the set of terminals that can appear…
GATE · 1992 · CS · Question 2 subpartsModified — slightly modified from the official paper; see the solution
For a context-free grammar, FOLLOW(A) is the set of terminals that can appear immediately to the right of non-terminal A in some “sentential” form. We define two sets LFOLLOW(A) and RFOLLOW(A) by replacing the word “sentential” by “left sentential” and “right most sentential” respectively in the definition of FOLLOW(A). Which of the following statements is/are true?
- A.
FOLLOW(A) and LFOLLOW(A) may be different.
- B.
FOLLOW(A) and RFOLLOW(A) are always the same.
- C.
All the three sets are identical.
- D.
All the three sets are different.
Attempted by 3 students.
Sign up free to check your answer
Sign up freeLoading lesson…