Recent questions tagged compiler-design

0 votes
0 answers
631
backtracking is required only for top down parser? true/false
1 votes
0 answers
635
0 votes
0 answers
637
Consider the following Grammar GS >SX|SSb|XS|aX >a|XbThe number of productions in the grammar(including epsilon production) after removing left recursion is ?
0 votes
1 answer
638
0 votes
1 answer
640
0 votes
1 answer
641
Consider the following transition rules:A->BCC->+BC|A|$\epsilon$B->DB{print '+'}|$\epsilon$D->(A)|id{print num.value}On input '5+67' this translation scheme printsA 5+67+...
4 votes
2 answers
646
1 votes
0 answers
647
0 votes
0 answers
650
0 votes
1 answer
651
WHICH OF THE FOLLOWING STATEMENTS ARE TRUE?a) S1 & S3b) S2 & S4c) S2 & S3d) None of theseAnswer is option a.can anyone tell me how option a is correct?
0 votes
0 answers
652
0 votes
1 answer
653
0 votes
1 answer
655
Consider the grammarS->a/ab/abcA) it is LL(1)B) it is LL(2)C) it is LL(3)
0 votes
0 answers
658
Show that no grammar that has cycles can be LL(1).Is it true ??It is saying if the grammar has cycle it can't be LL(1)But what if the cycle in grammar is due to RIGHT REC...
0 votes
1 answer
659
One of the purposes of using intermediate code in compilers is to increase the chances of reusing the machine-independent code optimizer in other compilers.eleborate this...