On Mon, Mar 17, 2014 at 6:33 PM, Christophe Bal <projetmbc@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)*


    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.