Consider the following grammar πΊ π β πΉ | π» πΉ β π | π π» β π | π whereβ¦
GATE Β· 2015 Β· CS Β· Set 3 Β· Computer Science & IT
Consider the following grammar πΊ
π β πΉ | π»
πΉ β π | π
π» β π | π
where π, πΉ, and π» are non-terminal symbols, π, π, and π are terminal symbols. Which of the following statement(s) is/are correct?
S1. LL(1) can parse all strings that are generated using grammar πΊ
S2. LR(1) can parse all strings that are generated using grammarΒ πΊ
- A.
Only S1
- B.
Only S2
- C.
Both S1 and S2
- D.
Neither S1 nor S2
Attempted by 243 students.
Sign up free to check your answer
Sign up freeLoading lessonβ¦