Professional Documents
Culture Documents
1.
Check whether the following grammar is LL (1) or not:
A-> BD
B->e
D-> =A/€
4. Given a grammar
S->aSbS|bSaS|
a) Show that this grammar is ambiguous by constructing two different. Left most
derivations for the sentence abab.
b) Construct the corresponding parse tree for abab
5. Using block diagram, indicate different phases of compilation explaining their
activities.
6. Consider the following grammar
S-> aABe
A->Abc|b
B->d
Find the FIRST and FOLLOW set.
7. Construct predictive parsing table for the following grammar and check if it is LL(1)
grammar or not.
S->(S)S/