Which of the following statements are true about parsing in Compiler design?…

Which of the following statements are true about parsing in Compiler design?

i. A parser converts tokens generated by the lexical analyser into a parse tree.

ii. A top-down parser can handle left-recursive grammars without any modifications.

iii. A shift-reduce parser can make decisions based on the current input symbol and the top of the stack.

iv. LL(1) parsing is a type of bottom-up parsing technique.

Choose the correct answer from the option given below.

  1. A.

    Only i, ii

  2. B.

    Only i, iii

  3. C.

    Only ii, iv

  4. D.

    Only i, iii, iv

Attempted by 80 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…