Is this grammar right associative (why?) Given a grammar as follows: 

$\left&lt;stmt\right&gt; \rightarrow \left&lt;id\right&gt; = \left&lt;expr\right&gt;$

$\left&lt;const\right&gt; \rightarrow A | B$

$\left&lt;expr\right&gt; \rightarrow \left&lt;term\right&gt; \times \left&lt;expr\right&gt; | \left&lt;term\right&gt;$

$\left&lt;term\right&gt; \rightarrow \left&lt;factor\right&gt; + \left&lt;term\right&gt; | \left&lt;factor\right&gt;$

$\left&lt;factor\right&gt; \rightarrow (\left&lt;expr\right&gt;) | \left&lt;id\right&gt;$

I think this grammar is right associative because it expands on the right. Where I am confused is it can be expanded using other non-terminals on the left. For example, 

$\left&lt;expr\right&gt; \rightarrow \left&lt;term\right&gt; \times \left&lt;expr\right&gt; | \left&lt;term\right&gt;$

Could be expanded via $\left&lt;term\right&gt;$ on the left, I think. Does this make the associativity ambiguous? Assuming it could be ambiguous, how would I fix this to make the grammar completely right associative?
$\left&lt;expr\right&gt; \to \left&lt;term\right&gt;×\left&lt;expr\right&gt; | \left&lt;term\right&gt;$

could certainly expand $\left&lt;term\right&gt;$. But the operator in that expansion (if there is one) is certainly not $×$; it would have to be $+$. So associativity doesn't apply, since associativity is only about expressions involving two of the same operator.

So yes, in both operator productions in that grammar, the operator is right-associative.