Define lexemes, patterns and tokens
[3 marks]Write a regular definition for: 1. The language of all strings containing at least one 0 and at least one 1. 2. The language of all strings that do not end with 01. 3. The language of all strings containing 0’s and 1’s both are even. 4. The language of all strings which are starting with 1 and ending with 0.
[4 marks]Explain phases of compilers with suitable example.
[7 marks]Differentiate ambiguous and unambiguous grammar.
[3 marks]Write a short note on input buffering techniques.
[4 marks]Construct a DFA for a given regular expression using syntax tree with firstpos, lastpos and followpos function. (a|b)*a
[7 marks]Construct the NFA for following regular expression using Thompson’s construction. Apply subset construction method to convert into DFA. (a+b)*abb#
[7 marks]Give the translation scheme that convert infix to postfix notation.
[3 marks]Define: Left Recursive Grammar. Check Following grammar is left recursive or not, if yes, remove left recursive from it. A → ABd / Aa / a B → Be / b
[4 marks]Construct an SLR Parsing table for the following grammar. S Aa | bAc | bBa A d B d
[7 marks]Explain shift reduce parsing technique in brief.
[3 marks]Differentiate top down parsing and bottom up parsing.
[4 marks]Show that the following grammar S AaAb | BbBa A ϵ B ϵ is LL(1) but not SLR(1).1
[7 marks]Write a short note on activation record.
[3 marks]Explain Symbol table management in brief.
[4 marks]List and explain various storage allocation strategies.
[7 marks]What do you mean by dangling references?
[3 marks]Explain Error Recovery Strategies in Compiler in brief.
[4 marks]Write three address code for a = b*-c + b*-c
[7 marks]Translate the arithmetic expression (a + b) * (c + d) into 1. Syntax tree 2. Postfix notation
[3 marks]Compare: Static v/s Dynamic Memory Allocation
[4 marks]Explain various code optimization techniques.
[7 marks]Construct a DAG for the following expression: a = b*-c + b*-c
[3 marks]Explain various parameter passing methods.
[4 marks]Explain various issues in design of code generator.
[7 marks]