Latihan UAS Teknik Kompilasi Computer Science
Latihan UAS Teknik Kompilasi Computer Science
2.
Production
EE-T
ET
TT/F
TF
F(E)
F num
Buatlah anotated
Semantic rules
E.val = E1.val T.val
E.val = T.val
T.val = T1.val / F.val
T.val = F.val
F.val = E.val
F.val = num.val
Parse Tree dari statement : 8-6+(8/2)