Define the following terms. 1) Compiler 2) Interpreter 3) Preprocessor
[3 marks]What is regular expression? Give all the algebraic properties of regular expression.
[4 marks]Explain analysis phase of the compiler with example.
[7 marks]Explain grouping of phases in compiler.
[3 marks]Draw Transition diagram of following: 1) Relational operators. 2) Unsigned Operator.
[4 marks]Explain subset construction method for constructing DFA from an NFA with an example.
[7 marks]Draw DFA from regular expression without constructing NFA. (a | b )* abb#.
[7 marks]What is ambiguous grammar? Discus with suitable example.
[3 marks]Explain the stack implementation of shift reduce parser with the help of example.
[4 marks]Construct LL(1) parsing table for the following Grammar and parse the string (a, a )$ using the parsing table. S -> ( L ) | a L-> L , S | S
[7 marks]Differentiate top down parsing and bottom up parsing.
[3 marks]What is Inherited attribute? Explain with suitable example
[4 marks]Show that the following grammer S-> AaAb | BbBa A -> ϵ B -> ϵ is not SLR(1).
[7 marks]What is operator grammar? Given an example.
[3 marks]What is the need of intermediate code? Explain quadruple, triple and indirect triple with suitable example.
[4 marks]Write and explain the generic issues in the design of code generators.
[7 marks]What is the difference between parse tree and syntax tree? Write appropriate grammar and draw parse as well as syntax tree for a + a * a.
[3 marks]Explain various parameter passing methods
[4 marks]Write a context free grammar for arithmetic expressions. Develop a syntax directed definition for the grammar. Draw an annotated parse tree for the input expression: 3*2+5n.1
[7 marks]Explain how panic mode and phrase level error recovery can be implemented.
[3 marks]Write a Syntax-directed definition for flow-of-control statement.
[4 marks]Explain symbol table management.
[7 marks]Define the following terms. 1) Basic block 2) DAG 3) Flow graph
[3 marks]Explain Dynamic storage allocation technique.
[4 marks]Explain various code optimization techniques.
[7 marks]