On Mon, Mar 17, 2014 at 6:33 PM, Christophe Bal <projet...@gmail.com> wrote:

>
> Defining *-product to have stronger priority than the @-product, and this
> last having stronger priority than +, will make the changes in the grammar
> easier.
>


The easiest is to give @ the same precedence as *.  This will only require
changing

    term: factor (('*'|'/'|'%'|'//') factor)*

to

    term: factor (('*'|'/'|'%'|'//'|'@') factor)*

Anything else will require an extra rule, but in any case implementation is
trivial.

I don't think we need to worry about implementation details at this point.
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to