GATEverse
← GATE CSE 1992

Q11a

NATMarks unknown

Write syntax directed definitions (semantic rules) for the following grammar to add the type of each identifier to its entry in the symbol table during semantic analysis. Rewriting the grammar is not permitted and semantic rules are to be added to the ends of productions only. D→TL;D \rightarrow TL; T→intT \rightarrow \text{int} T→realT \rightarrow \text{real} L→L,idL \rightarrow L,id L→idL \rightarrow id

Sign in to save attempts.

Loading…