ACD-R20(DEC 2022)
ACD-R20(DEC 2022)
R20
MALLA REDDY COLLEGE OF ENGINEERING & TECHNOLOGY
(Autonomous Institution – UGC, Govt. of India)
III B.Tech I Semester Regular Examinations, December 2022
Automata and Compiler Design
(CSE-CS & CSE-DS)
Roll No
B Define Context Free grammar formally with an example and derivations [7M]
using a grammar.
SECTION-II
3 A What are the different phases of the compiler? Explain with the block [7M]
diagram?
B Differentiate Synthesized and Inherited attributes with example. [7M]
OR
4 A Explain YACC with an example program? [7M]
B Consider the following grammar: [7M]
D →TL
T → int |float
L →L, id |id
Write the Syntax Directed Definitions (SDD) to add the type of each
identifier to its entry in the symbol table during semantic analysis?
SECTION-III
5 A Explain the Chomsky hierarchy of languages and recognizers. [7M]
B Explain overloading of functions and operations with examples. [7M]
OR
Page 1 of 2
R20
Page 2 of 2