A shift reduce parser carries out the action specified within braces immediately after reducing with the corresponding rule of grammar.

S → aaX {Print “2”}

S → b {Print”3”}

X → Sc {Print”1”}

What is the translation of “aaaabcc” using the syntax directed translation scheme described by the above rules?

1
32311
2
31212
3
12321
4
23131

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation