Fix a precedence bug.
a == b or c == d should obviously parse as (a==b) or (c==d).
This commit is contained in:
1 parent
49cf2e67fe
commit
f13865d7a1
1 file changed
+1
-1
+1
-1
@@ -72,9 +72,9 @@
|
|||||||
%left ','
|
%left ','
|
||||||
%right "//"
|
%right "//"
|
||||||
%nonassoc '=' SETPIPE SETPLUS SETMINUS SETMULT SETDIV SETDEFINEDOR
|
%nonassoc '=' SETPIPE SETPLUS SETMINUS SETMULT SETDIV SETDEFINEDOR
|
||||||
%nonassoc EQ
|
|
||||||
%left OR
|
%left OR
|
||||||
%left AND
|
%left AND
|
||||||
|
%nonassoc EQ
|
||||||
%left '+' '-'
|
%left '+' '-'
|
||||||
%left '*' '/'
|
%left '*' '/'
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user