GATE Computer Science (CS) 2019 Solved Papers
© examsiri.com
Question : 46 of 65
Marks:
+1,
-0
Consider the following grammar and the semantic actions to support the inherited type declaration attributes. Let , and be the placeholders for the non-terminals or in the following table:
Which one of the following are the appropriate choices for and ?
| Production rule | Semantic action |
| type .type | |
| int | T.type int |
| T.type int | t.type float |
| , id | X3.type .type and Type (id.type, .type) |
| add Type(id.entry, .type) |
Go to Question: