Q. Following syntax-directed translation scheme is used with a shift reduction (bottom up) parser that perform the action in braces immediately after a reduction by the corresponding productionA —>aB {print “(1)” A —> c {print “1”),B —>Ab {print *2”}.When parser is aaacbbb, then string printed (Solved)

1. 0202021

2. 1202020

3. 1020202

4. None of these

  • a. 0202021
Subscribe Now

Get All Updates & News