Compiler-Design
January 31, 2024Compiler-Design
January 31, 2024Compiler-Design
| Question 12 |
A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammar
S → xxW {print "1"}
S → y {print "2"}
W → Sz {print "3"} What is the translation of xxxxyzz using the syntax directed translation scheme described by the above rules?
| 23131 | |
| 11233 | |
| 11231 | |
| 33211 |
Question 12 Explanation:

⇒ 23131
Note SR is bottom up parser.
Correct Answer: A
Question 12 Explanation:

⇒ 23131
Note SR is bottom up parser.
