change bitwise and priority

databind
vitalif 2013-04-19 13:04:03 +00:00 committed by Vitaliy Filippov
parent 2117a50a4b
commit eab481212d
1 changed files with 2 additions and 2 deletions

View File

@ -14,9 +14,9 @@
%left ".."
%left "||" "OR" "XOR"
%left "&&" "AND"
%left "&"
%nonassoc "==" "!=" "<" ">" "<=" ">="
%left "+" "-"
%left "&"
%left "*" "/" "%"
%%
@ -38,10 +38,10 @@ elseif: "ELSE" "IF" | "ELSIF" | "ELSEIF"
exp: exp ".." exp |
exp "||" exp | exp "OR" exp | exp "XOR" exp |
exp "&&" exp | exp "AND" exp |
exp "&" exp |
exp "==" exp | exp "!=" exp |
exp "<" exp | exp ">" exp | exp "<=" exp | exp ">=" exp |
exp "+" exp | exp "-" exp |
exp "&" exp |
exp "*" exp | exp "/" exp | exp "%" exp |
p10
p10: p11 | '-' p11