in Compiler Design
400 views
0 votes
0 votes
Consider the following syntax directed definition 
A → BC C.i = f1(A . i) ….. I 
  B.i = f2(A . s) ….. II
  A.s = f3(B . s) ……. III
I for inherited, s for synthesized attribute which of the following is TRUE?
(1)  (I) is violating L attributed definition
(2)  (II) is violating L attributed definition
(3)  (III) is violating L attributed definition
(4)  None of these
in Compiler Design
by
400 views

1 comment

None of these should be the answer.

(1) -  NOT TRUE because it is L attributed . Value derived from Parent

(2) -  NOT TRUE because  again it is L attributed . Value derived from Parent.

(3) - NOT  TRUE because it is S attributed . Every S attributed is L attributed.

 

1
1

Please log in or register to answer this question.

Related questions