retagged
1,062 views
1 votes
1 votes
Either L attribute or S attributed .

What kind of SDT it is  ?

S --->E#   Out('#')

E ---> E+E   Out('+')

E --->T

T ---> T#F   Out('*)

T ---> F

F ---> (E)

F ---> a   Out ('a')

For the sentence a+a+a

What will be the final Output of it ?
retagged

2 Answers

0 votes
0 votes

It is S attributed as the attributes are depending on their child

Let me know if anything is wrong

Related questions

0 votes
0 votes
3 answers
1
1 votes
1 votes
3 answers
4
spriti1991 asked Mar 18, 2015
2,410 views
Consider the SDT , where S ->TR, R- +TR|empty {print ("+")} , And T- num {print(num)} And if the input is given "9+5+2" What is output ?