adplus-dvertising
frame-decoration

Question

Consider the following grammar G.
S → F ⎪ H

F → p ⎪ c

H → d ⎪ c

Which one is true?

S1: All strings generated by G can be parsed with help of LL (1).

S2: All strings generated by G can be parsed with help of LR (1).

a.

Only S1

b.

Only S2

c.

Both S1 S2

d.

None of the mentioned

Posted under Compiler Design

Answer: (d).None of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Consider the following grammar G. S → F ⎪ H F → p ⎪ c H → d ⎪ c Which one is true? S1: All strings generated by G can be parsed with help of LL (1). S2: All...