Multiple Choice
Consider the following grammar. S -> S * E
S -> E
E -> F + E
E -> F
F -> id
Consider the following LR(0) items corresponding to the grammar above.
(i) S -> S * .E
(ii) E -> F. + E
(iii) E -> F + .E
Given the items above, which two of them will appear in the same set in the canonicalsets-of-items for the grammar?
A) (i) and (ii)
B) (ii) and (iii)
C) (i) and (iii)
D) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Q8: The number of tokens in the following
Q9: Consider the grammar defined by the following
Q10: The grammar S ? aSa | bS
Q11: Consider the following statements:<br>(I) The output of
Q12: Consider the following translation scheme. S ?
Q14: Consider the grammar S ? (S) |
Q15: In compiler optimization, operator strength reduction uses
Q16: The grammar A ? AA | (A)
Q17: Which of the following describes a handle
Q18: Consider the following two sets of LR(1)