Consider the following syntax directed translation scheme:

S -> bA          {print X}

A -> aB          {print Y}

B -> b            {print X}

What will be the output printed by a bottom-up parser, for the input bab?

1
XXY
2
YYX
3
XYX
4
YXY

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation