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.
please refer http://nptel.ac.in/courses/106108113/module4/Lecture14.pdf
@mehul vaidya The provided link isn't active anymore. Can you please provide the new link for this?
$L.in$ is an inherited attribute. Its value can be passed from left sibling to right sibling via the root of the subtrees, or from one node to its child.
This is a variant of a grammar from the dragon book that gives you sentences of the form $int\ x,y,z$, from chapter 5 on SDDs/SDTs. It is L-attributed, because it has inherited attributes.