All mock tests are FREE till 31 December — register to save your progress

A bottom-up parser generates :

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. Right-most derivation in reverse

Explanation

Shift-reduce parsers trace a rightmost derivation in reverse.

More Theory of Computation and Compilers questions