1.

Which of the following actions an operator precedence parser may take to recover from an error?(a) Insert symbols onto the stack(b) Delete symbols from the stack(c) Inserting or deleting symbols from the input(d) All of the mentionedI got this question during an interview.Query is from Handle of Right sentinel Grammar in section Bottom Up Parsing of Compiler

Answer»

Correct option is (d) All of the mentioned

The EXPLANATION: All these SYMBOLS are used to RECOVER operator precedence parser from an ERROR.



Discussion

No Comment Found

Related InterviewSolutions