Professional Documents
Culture Documents
B.Tech.
E-7 T+E IT
T-7 V*T IV
V -7 id
TCS-502 2
4. Attempt any two parts of the following: (10x2=20)
(a) Translate the following program fragment into
three address code -
int i ;
i= 1
while a < 10 do
if x > y then a = x + y
else a = x - y
(b) Construct LL(l) parsing table for the following
grammar :
s~ A
A -7 aB I aC I Ad I Ae
B-7 bBcl f
C-7 g
-000-
TCS - 502 3