1.

Which of the following is true for shift reduce parsers?(a) Scans and parses the input in one forward pass over the text, without any backup.(b) A shift command advances in the input stream by one symbol(c) LALR parser(d) All of the mentionedI have been asked this question during an interview.My doubt stems from Applications in division Context Free Grammars and Languages of Automata Theory

Answer»

The CORRECT choice is (d) All of the MENTIONED

Easy explanation: The mentioned are the correct and proper functions of a shift reduce parsers. The parsing methods are most COMMONLY used for parsing programming LANGUAGES, etc.



Discussion

No Comment Found

Related InterviewSolutions