Consider the following Syntax directed translation (SDT)

S → TR { printf(+) }

R → +T { printf(*) } R { printf(+) } | ε  { printf(*) }

T → num { printf(+) }

The input to this SDT is 2 + 3 + 4 + 5. Find the output on the given input?

1
+ + * + * + * * * + + + 
2
+ + * + * + + * + + + +
3
+ + * + * + * * + * + +
4
+ + * + * + * * + + + +

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation