MCQ · 2 marks · Parsing

GATE CS 2015 CS-3 — Q65

Consider the following grammar GG

S→F∣HF→p∣cH→d∣c \begin{array}{rcl} S & \to & F \mid H \\ F & \to & p \mid c \\ H & \to & d \mid c \end{array}

where S,FS, F, and HH are non-terminal symbols, p,dp, d, and cc are terminal symbols. Which of the following statement(s) is/are correct?

S1. LL(1) can parse all strings that are generated using grammar GG
S2. LR(1) can parse all strings that are generated using grammar GG
Select one option