retagged by
1,088 views
0 votes
0 votes

retagged by

4 Answers

Best answer
3 votes
3 votes

LL(1) uses left most derivation

E ->   E     *      E

    -> E   ↑    E    * E

   -> id  ↑    E    * E

   -> id  ↑    id    * E

    -> id  ↑    id    *  id

selected by
2 votes
2 votes
Should be c..

Depends on which production is used  at starting E->E*E or E->E^E
0 votes
0 votes
Answer is B.

          E

E        ↑        E

 id             E     *      E

 a              id              id

                 b                c

 

at first print a,then b,then c ,now for b*c reduction print * and finally a↑b*c reduction print ↑

so answer abc*↑

Related questions

0 votes
0 votes
2 answers
1
1 votes
1 votes
2 answers
2
shekhar chauhan asked Jun 5, 2016
1,072 views
Either L attribute or S attributed .What kind of SDT it is ?S ->E# Out('#')E - E+E Out('+')E ->TT - T#F Out('*)T - FF - (E)F - a Out ('a')For the sentence...
1 votes
1 votes
3 answers
3
spriti1991 asked Mar 18, 2015
2,430 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 ?
0 votes
0 votes
2 answers
4
worst_engineer asked Sep 12, 2015
656 views
The output for SDT isE - E+E printf("+")E - a printf("a")for a + a + a is