Branch: Tag:

2016-11-08

2016-11-08 11:07:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Declare the precedence and associativity of **.

The **-operator is now right-associative and has high precedence.
This means that the expression

-2**3**4

evaluates to

-(2**(3**4)) (== -2417851639229258349412352)

and not to

((-2)**3)**4 (== 4096)

Fixes quite a few yacc warnings about the grammar.

118:   %left '+' '-'   %left '*' '%' '/'   %right TOK_NOT '~' + %right TOK_POW   %nonassoc TOK_INC TOK_DEC      %{