edited by
447 views
0 votes
0 votes
Consider the following SDD
T→FT1 { F.val = T1.val}
T2 →*AT3{T2.val=T3.val×A.val}
Which of the following is true?

1This SDD follows L-attributed definition

2This SDD follows S-attributed definition.

3None of the above.

4This SDD follows both S-attributed as well as L-attributed definition.

answer 3
edited by

2 Answers

Best answer
0 votes
0 votes

Because of attribute F taking value from its Right attribute (i.e T1) it is not L attributed  SSD, and of course it is not S attributed SSD so NONE.

selected by
0 votes
0 votes

Not L & S-attributed

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2
Ebrahim asked Jan 12
171 views
Q1. For the following grammar N - AB | BA A - a | CAC B - b | CBC C - a | b Find the FIRST and FOLLOW
0 votes
0 votes
0 answers
3
Ebrahim asked Jan 11
106 views
Find the FIRST and FOLLOW of the grammar to check whether it is LL (1) parser or not. N → AB | BA A → a | CAC B → b | CBC C → a | b
0 votes
0 votes
0 answers
4