Compiler-Design
October 7, 2023Operating-Systems
October 7, 2023Grammar
|
Question 2
|
In the following grammar
X ::= X ⊕ Y/Y
Y ::= Z * Y/Z
Z ::= id
Which of the following is true?
|
‘⊕’ is left associative while ‘*’ is right associative
|
|
|
Both ‘⊕’ and ‘*’ is left associative
|
|
|
‘⊕’ is right associative while ‘*’ is left associative
|
|
|
None of the above
|
Question 2 Explanation:

⊕ is left associative.
* is right associative.
Correct Answer: A
Question 2 Explanation:

⊕ is left associative.
* is right associative.
