Consider the grammar E → E + n | E × n | n For a sentence n + n × n, the…

PYQ GATE 2005

Consider the grammar

E → E + n | E × n | n 

For a sentence n + n × n, the handles in the right-sentential form of the reduction are

  1. A.

    n, E + n and E + n × n

  2. B.

    n, E + n and E + E × n

  3. C.

    n, n + n and n + n × n

  4. D.

    n, E + n and E × n

Attempted by 301 students.

Sign up free to check your answer

Sign up free

Explore the full course: Compiler Design

Loading lesson…