engineering recuitment ISRO Scientist Computer Science Mock Test Compiler Design Syntax Directed Translation Uses
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