Consider the following translation scheme.
Here id is a token that represents an integer and id.value represents the corresponding integer value. For an input '2 * 3 + 4', this translation scheme prints
(A) 2 * 3 + 4
(B) 2 * +3 4
(C) 2 3 * 4 +
(D) 2 3 4+*
My try: I figured out the following tree and found the answer to be (C) i.e. 23*4+. But the given answer in (D).
Am I missing something?
i think D. is ans since + having higher precedency over * ...In ur tree * having higher precedence than + ...
For creating automatas you can also ...