1.

Consider the syntax directed translation scheme (SDTS) given in the following. Assume attribute evaluation with bottom-up parsing, i.e., attributes are evaluated immediately after a reduction.

A. E.val = 12 ; E.red = T.red + 1
B. E.val = 2 ; E.red = T.red + 1
C. E.val = 10 ; E.red = T.red - 1
D. All of these
Answer» B. E.val = 2 ; E.red = T.red + 1


Discussion

No Comment Found

Related MCQs