Machine-translated by Google. Questions are authored in English.
Top

Discussion

Bottom up parsing traces out

  • A.every possible derivation of the input simultaneously
  • B.the steps of a rightmost derivation taken backwards
  • C.a leftmost derivation of the input read in the usual order
  • D.no derivation whatever

Answer: B

Correct answer: the steps of a rightmost derivation taken backwards

A bottom up parser starts from the input and works towards the start symbol, so the reductions it performs are the derivation steps run in reverse. Because the handle is always the leftmost complete right side available, the derivation being reversed is specifically the rightmost one - which is why the method is also called LR, for left-to-right scan of a rightmost derivation in reverse.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.