Explain briefly about different phases involved in compiler, with a block diagram[6]
2.
Discuss the importance of error handler in compiler. How is it manipulated in the different phases of compilation?[6]
S2
1.
Given a regular expression (ε+0)∗10. Construct the DFA recognizing the pattern described by this regular expression using syntax tree based reduction.[6]
2.
What is shift reduce parsing techniques? Show shift reduce parsing action for the string (x+x)*a, given the grammar[6]
3.
Construct SLR parsing table for the following grammar.
S→aAa∣bAb∣ba
[6]
4.
Define Syntax directed definition. Construct annotated parse tree for the input expression (5*3+2)*5 according to the following syntax directed definition.