1.

Which of the following describes a handle (as applicable to LR-parsing) appropriately?(a) Position wherenext reduce orshiftoperation will occur(b) The next step has use of Non-terminal for reduction(c) Used for reduction in a coming-upstep along with a position in the sentential form where the next shift or reduce operation will occur(d) Used in the next step for reduction along with a position in the sentential form where the right hand side of the production may be foundThe question was asked in exam.Query is from Top-Down Parsing in chapter Topdown Parsing of Compiler

Answer»

Correct ANSWER is (d) Used in the next step for reduction along with a POSITION in the sentential FORM where the right HAND side of the production MAY be found

For explanation I would say: the next step in LR parsing shall have a Reduction.



Discussion

No Comment Found

Related InterviewSolutions