1.

Which of the following is true for operator precedence parsing?(a) For all pair of non-terminal(b) For all pair of non-terminals(c) To delimit the handle(d) None of the mentionedI got this question in an online quiz.Query is from Lexical Analysis topic in section Compiler Introduction of Compiler

Answer»

The CORRECT option is (a) For all pair of non-terminal

To explain: There are two important PROPERTIES for these OPERATOR precedence parsers is that it does not appear on the right SIDE of any production and no production has two ADJACENT non-terminals. Implying that no production right side is empty or has two adjacent non-terminals. So accordingly to property option (A) is correct.



Discussion

No Comment Found

Related InterviewSolutions