1.

What is the similarity between LR, LALR and SLR?(a) Use same algorithm, but different parsing table(b) Same parsing table, but different algorithm(c) Their Parsing tables and algorithm are similar but uses top down approach(d) Both Parsing tables and algorithm are differentThe question was posed to me in an online interview.My question is based upon LR Parser in chapter Bottom Up Parsing of Compiler

Answer»

Right choice is (a) Use same algorithm, but different parsing table

To EXPLAIN I would say: The COMMON grounds of these 3 PARSER is the algorithm but parsing table is different.



Discussion

No Comment Found

Related InterviewSolutions