Arrange the following parsers in increasing order of their power of handling grammars i.e. from the least powerful parser to the most powerful parser.
A. LR (0)
B. LR (1)
C. LALR(1)
D. LL (0)
E. SLR
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. LL(0) → LR(0) → SLR → LALR(1) → LR(1)
Explanation
Power increases from LL(0) to LR(0), SLR(1), LALR(1) and finally canonical LR(1), which is the most powerful of these.
More Theory of Computation and Compilers questions
- Which of the following is the Optimized version for the given TAC in the passage
- What all blocks does Block 3 and Block 5 dominate in the Flow graph for the TAC given in the passage?
- Which of the followings is the correct Flow graph for the TAC given in the passage?
- Match the LIST-I with LIST-II
- Match List I with List II. List I: A. Type-0 grammar, B. Type-1 grammar, C. Type-2 grammar, D. Type-3 grammar. List II: I. Linear grammar;…
- For the above mentioned passage which of the following is correct?