Recent questions tagged compiler-design

1 votes
0 answers
1111
2 votes
1 answer
1112
S - >aSb | cGive viable prefix for this with details of how to find viable prefix? for string - - aacbb
0 votes
0 answers
1113
PLEASE SUGGEST ME THE PROCEDURE TO DRAW AN DAG FOR INTERMEDIATE CODE AND SOME RESOURCES TO STUDY REGISTER ALLOCATION AND SPILLING FROM
1 votes
2 answers
1114
How many derivation trees are there to derive string"te" from below grammer:-G->ATE | g | $\epsilon$A->TE | a | $\epsilon$T- t | $\epsilon$E- e | $\epsilon$
2 votes
0 answers
1115
0 votes
0 answers
1116
Consider the following augmented grammar G which is used to build LR (0) parsing table.E' __ EE __ E+T/TT __ T*F/FF >(E)/idHow many rows are there in the parsing rable ?...
0 votes
0 answers
1117
Find the C statement which has a syntax error.fi(z);for(a, b, c);whil(a, b);fi (z);for (a, b, c);whil (a, b);None of these.This is a modification of https://gateoverflow....
1 votes
0 answers
1118
can anyone tell me the features of LR(K) grammers ? how is it different from LL(K)
9 votes
2 answers
1119
Q) For each of the following C statements state whether they contain lexical error, syntax error, semantic error or no error(along with reason) -i) inta radius =5;ii) x=1...
1 votes
0 answers
1120
For the block-structured C code below, indicate the values assigned to w, x, y, and z.int w, x, y, z; int i = 4; int j = 5; { int j = 7; i = 6; w = i + j; } x = i + j; { ...
1 votes
0 answers
1121
5 votes
1 answer
1123
5 votes
1 answer
1125
Marcos & prepocessor directive (#define, #include) are handle by which phase of compiler ?? Or it is not input to compiler,it is alredy handled in preprocessor???Please e...
2 votes
1 answer
1126
What are the differences between strong LL(k) parsing and LL(k) parsing?
2 votes
1 answer
1127
How to check in the grammar that which parsing method works more efficient for it?For eg in the following grammar -S- Aa/bS->aOptions -a) Top - Downb) Bottom - upc) Bothd...
2 votes
1 answer
1133
6 votes
2 answers
1136
6 votes
1 answer
1137
Given answer is 25, while my answer is 26, they have considered -10.0 as single token, which is wrong?
6 votes
1 answer
1138
2 votes
1 answer
1139
This screenshot is token from the book Ullman,How can following be a lexical error? because "elipseSize" should have a token recorded as an identifier.
2 votes
1 answer
1140