GTU 3170701 Compiler Design (CD) Summer 2023 Paper Solution & PDF
Question 2
Construct a DFA for a given regular expression using syntax tree with firstpos, lastpos and followpos function. (a|b)*a
Construct the NFA for following regular expression using Thompson’s construction. Apply subset construction method to convert into DFA. (a+b)*abb#
Question 3
Define: Left Recursive Grammar. Check Following grammar is leftrecursive or not, if yes, remove left recursive from it.A → ABd / Aa / aB → Be / bS → Aa | bAc | bBaA → dB → dShow that the following grammarS → AaAb | BbBaA → ϵB → ϵis LL(1) but not SLR(1).Question 4
Write three address code for a = b*-c + b*-c
Question 5
Translate the arithmetic expression (a + b) * (c + d) into
a = b*-c + b*-c
Studying for Compiler Design?
Circulate this solved paper with KaTeX formulas and 1-click AI step solvers to your batchmates on WhatsApp or Telegram.
About this Examination Paper & Attribution
Official Gujarat Technological University (GTU) examination paper and step-by-step solutions for Compiler Design (CD) (Summer 2023, B.E. · Computer Engineering, Sem 7). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.
Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.