–1 –1 vote In the following grammar \[ \begin{array}{l} \mathrm{P} \rightarrow \mathrm{P} \uparrow \mathrm{Q} \mid \mathrm{Q} \\ \mathrm{Q} \rightarrow \mathrm{R} \& \mathrm{~S} \mid \mathrm{S} \\ \mathrm{~S} \rightarrow \mathrm{id} \end{array} \] Which of the following is true? $\uparrow$ is left associative while $\&$ is right associative $\uparrow$ is right associative while $\&$ is left associative both $\uparrow \& \&$ are left associative none of the above Compiler Design compiler-design operator-grammar operator-precedence test-series + – shivanisrivarshini 701 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote A---> A∗B i.e. * is Left associativeA--->B*A i.e. * is Right associativeP is Left associative . Associativity of Q is Not Defined. Digvijay Pandey answered Jan 31, 2016 Digvijay Pandey comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote Answer is D. jiitalok answered Feb 3, 2016 jiitalok comment Share Follow 0 reply Please log in or register to add a comment.