Unit-I
1) With a neat block diagram, explain the various phases of a compiler in detail. Assuming an
expression give the output of each phase.
2) Explain input buffering in detail.
3) Construct a DFA for the given regular expression using subset construction method. Also minimize
the number of states ( a / b ) * a bb
4) Explain in detail about the role of lexical analyzer with the possible error recovery actions.
5) Explain in detail the cousins of the compiler.
6) What are the compiler construction tools. Explain.
7) Define regular expressions? What are the rules that define regular expressions over alphabet E ?
8) Write short notes on
a) tokens, patterns and lexemes
b) regular definitions
c) transition diagrams.
9) What are Lex and Lex specification ? How lexical analyzer is constructed using lex? Write a
Lex program that recognizer the tokens.
10) Construct NFA for (a/b)* and convert into DFA.
Unit-II
Unit-III
1) How would you generate intermediate coder for the flow of control statements? Explain with
examples.
2) Explain various data structures used for symbol table construction. Compare them.
3) Explain about the different types of three address statements.
4) What are the methods of translating Boolean expressions.
5) What is back batching? Explain with an example.
6) Explain procedure call with an example.
7) How assignment statements are translated into three address code?
8) Explain how declarations are done in a procedure using syntax directed translations.
9) What is a three address code? Mention its types. How would you implement these address
statements? Explain with suitable examples.
10) Write syntax directed translation for arrays.
Unit-IV
Unit-V