✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Given the following SDD:
S → A BA → id { A.val = length(id.lexeme); B.inh = A.val }B → num { B.val = B.inh + num.val; S.val = B.val }
For input:
x 5
where length("x") = 1 and num.val = 5.
Which is the correct evaluation order to avoid circular dependencies?