1.

Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar?(a) Removing left Recursive alone(b) Factoring the grammar alone(c) Along with removing left recursion we also perform the factoring of the grammar(d) None of the mentionedI have been asked this question in examination.Query is from Top-Down Parsing topic in chapter Topdown Parsing of Compiler

Answer»

Right OPTION is (d) None of the mentioned

To explain: REMOVING LEFT recursion and factoring the grammar do not suffice to convert an ARBITRARY CFG to LL(1) grammar.



Discussion

No Comment Found

Related InterviewSolutions