CPTT CSE 3739 Assignment-II
CPTT CSE 3739 Assignment-II
(Deemed to be University)
Construct the annotated parse tree and evaluate the value of the expression 4*6+3*7
A shift reduce parser carries out the actions specified within braces immediately after
reducing with the corresponding rule of grammar.
Construct the annotated parse tree and find the translation of aaaabcc using the syntax
directed translation scheme described by the above rules?
Consider the expression
4 a + a * (b-c) + (b-c) * d CO5 L3,L4
Generate the three-address code (TAC) for the given expression.
Represent the three-address code that is generated in Q.4, using the following
intermediate code formats:
i) Quadruples
5 CO5 L4,L6
ii) Triples
iii) Indirect Triples
By the end of the course, through lectures, readings, home works, assignments,
and exams, students will be able to:
Understand the overview of programming languages, language processors and
CO1
the structure of a compiler
Course Outcomes Acquire knowledge in theory of computation and their role in designing
CO2
different types of tokens generated by lexical analyzer
Understand the role of Parser(s) (LL, SLR, CLR and LALR) and its types i.e.
CO3
Top-down and Bottom-up parsers.
CO4 Apply and evaluate syntax directed translation schemes, synthesized
attributes, inherited attributes, and different techniques for symbol table
organization
Analyze the generation of various intermediate codes and the process of their
CO5
optimization.
Understand the target machine’s run time environment, and its instruction set
CO6
for code generation and techniques used for code optimization