Consider the following grammar G aligned S & F H F & p c H & d c aligned where S, F, and H are non-terminal symbols, p, d, and c are terminal symbols. Which of the following statement(s) is/are correct? S1. LL(1) can parse all strings that are generated using grammar G S2. LR(1) can parse all strings that are generated using grammar G
Topic-wise GATE CS PYQs with verified steps
