From f13865d7a11d1aa6322a28e46eaaa463d823f44e Mon Sep 17 00:00:00 2001 From: Stephen Dolan Date: Mon, 17 Sep 2012 22:37:51 +0100 Subject: Fix a precedence bug. a == b or c == d should obviously parse as (a==b) or (c==d). --- c/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/parser.y b/c/parser.y index 4492d185..fd5dfbc7 100644 --- a/c/parser.y +++ b/c/parser.y @@ -72,9 +72,9 @@ %left ',' %right "//" %nonassoc '=' SETPIPE SETPLUS SETMINUS SETMULT SETDIV SETDEFINEDOR -%nonassoc EQ %left OR %left AND +%nonassoc EQ %left '+' '-' %left '*' '/' -- cgit v1.2.3