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 237 students.
Show answer
Correct answer: D
The worked solution is available to enrolled students.
Video solution available to enrolled students.
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lessonβ¦