BSC - Computer Science Cs - Semester 6 - 2023 - November - Compiler Construction II 2019 Pattern
BSC - Computer Science Cs - Semester 6 - 2023 - November - Compiler Construction II 2019 Pattern
:
P6403 [Total No. of Pages : 3
[6155]-66
T.Y. B.Sc. (Computer Science)
CS - 366 : COMPILER CONSTRUCTION
(2019 Pattern) (Semester - VI)
e) State one difference between annotated Parse tree and dependency graph.
j) State True or False : Shift - Shift conflict does not occur in LR Parser.
P.T.O.
b) Write difference between LL parser and LR Parser.
c) Compute Leading and Trailing symbols of the following Grammar:
S (T) | a |
T T, S | $
S A|B
A aA | b
B dB / b
[6155]-66 2
b) Construct triples and Quadruples for the following expression :
(a+b)*(m–n) (m+n)
c) Consider the following SDD and construct Annotated Parse tree for
input string 3*5* 2
Production Semantic Rules
E TE E.inh = T.val
E.val = E.syn
E E.syn E.inh
T1.syn T1.syn
T1 T.syn T.inh
S Aa | b
A Ac | sd|
[6155]-66 3