1.

S->xx W {print”1”} S->y {print”2”} W->Sz {print”3”} A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammar. Using the syntax directed translation scheme described  by the above rule, the translation of xxxxyzz is

A. 11231
B. 11233
C. 23131
D. 33211
Answer» D. 33211


Discussion

No Comment Found

Related MCQs