Cs6660 Compiler Design III Cse
Cs6660 Compiler Design III Cse
Cs6660 Compiler Design III Cse
UNIT I
PART - A
1. What is a Complier?
2. What are the cousins of compiler?
3. State some compiler construction tools?
4. What is a preprocessor? State some functions of Preprocessors
5. What is a lexeme? Define a regular set.
6. What is a sentinel? What is its usage?
7. State some software tools that manipulate source program.
8. What are the main two parts of compilation? What are they performing?
9. What is a regular expression? State the rules, which define regular expression?
10. What is recognizer?
1.
2.
3.
4.
5.
PART - B
What is a compiler? State various phases of a compiler and explain them in detail.(16 Marks)
What are the cousins of a Compiler? Explain them in detail. (16 Marks)
Describe how various phases could be combined as a pass in a compiler? (16 Marks)
For the following expression Position:=initial+ rate*60. Write down the output after each pha
(i). Explain in detail about Grouping of Phases. (8 Marks)
(ii). Write Short Notes on Compiler Construction Tools. (8 Marks)
PART - B
1. Explain the role Lexical Analyzer and issues of Lexial Analyzer.(16 Marks)
2. Explain the specification of tokens. (16 Marks)
1. (i) Construct the predictive parser for the following grammar: (12 Marks)
S --> (L) | a
L --> L,S | S.
(ii) Construct the behavior of the parser on the sentence (a, a) using the grammar specified abo
2. (i) Give an algorithm for finding the FIRST and FOLLOW positions for a given non-terminal.(4 Mar
PART - B
PART - B