Section A
Attempt any two questions. (2×10=20)
- Explain the role of Lexical Analyzer. Define Regular Expression. Convert the 1.(0+1)*.0 to DFA directly. (3+1+6)
- What do you understand by top down parsing? Construct an LL(1) parse table for the following grammar. (2+8)
A→BC
C→bBC|E
B→ED
D→CED|Є
E⇒(A)|a
- Write the advantages of Intermediate Code Generation. Explain different types of intermediate code representation methods with example. (10)
- Draw block diagram with phases of compiler and explain any two phases.
- What is symbol table? What information is stored in symbol table? Explain.