GATEverse
← GATE CSE 1995

Q2.10

MCQMarks unknown

A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammar S→xxW  print“1"S \rightarrow xxW \;\text{{print“1"}} S→y  print“2"S \rightarrow y \;\text{{print“2"}} W→Sz  print“3"W \rightarrow Sz\; \text{{print“3"}} What is the translation of xxxxyzzxxxxyzz using the syntax directed translation scheme described by the above rules?

Sign in to save attempts.

Loading…