Consider the following productions with semantic actions: S → A + B { S.val =…

Consider the following productions with semantic actions:

S → A + B { S.val = A.val + B.val }
A → a { A.val = a }
B → b { B.val = b }

Select the wrong option.

  1. A.

    The given SDT has synthesized attributes.

  2. B.

    The given SDT is L-attributed.

  3. C.

    The given SDT can be evaluated by a bottom-up parser.

  4. D.

    The given SDT has inherited attributes.

Attempted by 108 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…