Consider the following syntax directed definition:
What type of SDT is this?
Due to production #2 and #3, it should not be L-attributed as parent is taking value from its child. Also, as semantic rules are written anywhere in the RHS of the production, it is not S-attributed.
Given answer in test series : L-attributed