✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Consider the productions S→ AB , S→YZ, each non-terminal S, A, B, Y and Z has two attributes: s is a synthesized attribute and i is an inherited attribute. Consider
Rule 1 : A.i = S.i + 2 , B.i = A.i + S.i , S.s = A.s + B.s
Rule 2: Y.i = S.i + Z.s , Z.i = S.i + Y.s
Which one of the following is TRUE?