adplus-dvertising
frame-decoration

Question

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 mentioned

Posted under Compiler Design

Answer: (d).All of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following actions an operator precedence parser may take to recover from an error?

Similar Questions

Discover Related MCQs

Q. Which of the following is used for grouping of characters into tokens?

Q. A optimizing compiler

Q. Input to code generator

Q. A synthesized attribute is an attribute whose value at a parse tree node depends on

Q. In a bottom up evaluation of a syntax direction definition ,inherited attributes can

Q. _________ or scanning is the process where the stream of characters making up the source program is read from left to right and grouped into tokens.

Q. _____________ is a graph representation of a derivation

Q. Which of the following symbols table implementation is based on the property of locality of reference?

Q. Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states. Hence which one is true?

Q. Which of these is also known as look-head LR parser?

Q. What is the similarity between LR, LALR and SLR?

Q. An LR-parser can detect a syntactic error as soon as

Q. Which of these is true about LR parsing?

Q. Which of the following is incorrect for the actions of A LR-Parser ?
I) shift s
ii) reduce A->ß
iii) Accept
iv) reject?

Q. If a state does not know whether it will make a shift operation or reduction for a terminal is called

Q. When there is a reduce/reduce conflict?

Q. When ß ( in the LR(1) item A -> ß.a,a ) is not empty, the look-head

Q. When ß is empty (A -> ß.,a ), the reduction by A-> a is done

Q. The construction of the canonical collection of the sets of LR (1) items are similar to the construction of the canonical collection of the sets of LR (0) items. Which is an exception?

Q. Which of the following is a phase of a compilation process?