summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-09-17 22:37:51 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2012-09-17 22:37:51 +0100
commitf13865d7a11d1aa6322a28e46eaaa463d823f44e (patch)
treea26f92740b752c1547394efc0c2fb56e66850cb0
parent49cf2e67feedab2f5eda9575d7b5cc10cb74d385 (diff)
Fix a precedence bug.
a == b or c == d should obviously parse as (a==b) or (c==d).
-rw-r--r--c/parser.y2
1 files changed, 1 insertions, 1 deletions
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 '*' '/'