GATE | GATE CS 1996 | Question 68
Consider the syntax-directed translation schema (SDTS) shown below:
E → E + E {print “+”}
E → E ∗ E {print “.”}
E → id {print id.name}
E → ( E )
An LR-parser executes the actions associated with the productions immediately after a reduction by the corresponding production. Draw the parse tree and write the translation for the sentence
(a+b)∗(c+d), using the SDTS given above.
Answer:
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Recommended Posts:
- GATE | GATE CS 1996 | Question 32
- GATE | GATE CS 1996 | Question 3
- GATE | GATE CS 1996 | Question 2
- GATE | GATE CS 1996 | Question 36
- GATE | GATE CS 1996 | Question 60
- GATE | GATE CS 1996 | Question 61
- GATE | GATE CS 1996 | Question 59
- GATE | GATE CS 1996 | Question 29
- GATE | GATE CS 1996 | Question 47
- GATE | GATE CS 1996 | Question 46
- GATE | GATE CS 1996 | Question 28
- GATE | GATE CS 1996 | Question 4
- GATE | GATE CS 1996 | Question 5
- GATE | GATE CS 1996 | Question 31
- GATE | GATE CS 1996 | Question 49



