Академический Документы
Профессиональный Документы
Культура Документы
f,N,
Reg. No.:
Seventh Semester
Or
(b) (i) tools.
Discuss the various compiler construction (10)
(ir) Explain the process of Bootstrapping. (6)
t2. (a) (i) What is the role of lexical analyser? What is the need for lexical
analysis? Discuss the issues in lexical analysis. (8)
(ii) Construct a minimum state DFA for the regular expression
(a/b) * abb (a/b). (8)
Or
(b) (i) Prove that the given two regular expressions are equivalent by
showing that their minimum state DFA s are the same (a* | b*) and
((e I a)b *)*. (8)
(i') Discuss the input buffering schemes in lexical analysis. (8)
13. (a) (i) Define a regular grammar. Construct a regular grammar which will
generate all strings of 0's and l's having both an odd number of 0's
and odd number of 1's. (8)
(ii) Explain predictive parsing technique with an example. (8)
Or
O) Construct a recursive descent parsing for
E + E+T/T
T + T*FIF
T -+ id/@)
After making the necessary transformation to the above grammar.
14. (a) Detail the translation scheme for flow control statements and procedure
call.
Or
(b) Discuss back patching of Boolean expression.
15. (a) What are principal sources of optimization? Write a note on peephole
optimization.
Or
(b) Design a simple code generator. Illustrate with an example.
2 8t142