GATE Computer Science (CS) 2019 Solved Papers
© examsnet.com
Question : 46
Total: 65
Consider the following grammar and the semantic actions to support the inherited type declaration attributes. Let X 1 , X 2 , X 3 X 4 , X 5 , and X 6 be the placeholders for the non-terminals D , T , L or L 1 in the following table:
Which one of the following are the appropriate choices for X 1 , X 2 , X 3 and X 4 ?
| Production rule | Semantic action |
| T.type | |
| T.type | t.type |
| X3.type | |
| add Type(id.entry, |
Go to Question: