From 85fe4a819ca52ffbe99dd0d7820b5cd6219c50f1 Mon Sep 17 00:00:00 2001 From: volth Date: Sat, 21 Jul 2018 15:24:51 +0000 Subject: parser.y: fix assoc of -> and < > <= >= The parser allowed senseless `a > b > c` but disallowed `a -> b -> c` which seems valid It might be a typo --- src/libexpr/parser.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index eee48887dc22..3ef896692e31 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -273,11 +273,11 @@ void yyerror(YYLTYPE * loc, yyscan_t scanner, ParseData * data, const char * err %token IND_STRING_OPEN IND_STRING_CLOSE %token ELLIPSIS -%nonassoc IMPL +%left IMPL %left OR %left AND %nonassoc EQ NEQ -%left '<' '>' LEQ GEQ +%nonassoc '<' '>' LEQ GEQ %right UPDATE %left NOT %left '+' '-' -- cgit 1.4.1