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 49
- GATE | GATE CS 1996 | Question 48
- GATE | GATE CS 1996 | Question 35
- GATE | GATE CS 1996 | Question 40
- GATE | GATE CS 1996 | Question 34
- GATE | GATE CS 1996 | Question 33
- GATE | GATE CS 1996 | Question 39
- GATE | GATE CS 1996 | Question 46
- GATE | GATE CS 1996 | Question 47
- GATE | GATE CS 1996 | Question 36
- GATE | GATE CS 1996 | Question 37
- GATE | GATE CS 1996 | Question 38
- GATE | GATE CS 1996 | Question 32
- GATE | GATE CS 1996 | Question 31
- GATE | GATE CS 1996 | Question 25



