While working with YACC, we came across a POSSIBLE BUG
in the precedence mechanism of YACC.

You can give a token a precedence and associativity by
declaring this in the declaration-part of a YACC-file
According to the manual you can also change the precedence
and associativity of a token in the grammar-rules by
using the '%prec'-mechanism.

But it seems to us that this mechanism doesn't work!!!

We enclose a simple desk calculator and reverse the usual
precedence of '+' with '*' using the '%prec'-mechanism.
It seems that the associativity of tokens can be changed.(?)
But their precedence levels are now the same.

Are we doing something wrong?
Is this a BUG on YACC?
If it is a bug, is there a way of changing the prec. and
ass. of tokens ? (We really need it!)

Please mail us with comments, results etc. or discuss this on the net.