aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2018-07-21 15:24:51 +0000
committerGitHub <noreply@github.com>2018-07-21 15:24:51 +0000
commit85fe4a819ca52ffbe99dd0d7820b5cd6219c50f1 (patch)
treeaa5445205124bdc4a05ed79804a6eaa6b21dc4d3 /src
parent1b34b69b45106e5bfdbdc0201d3ff4dcd36632f0 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index eee48887d..3ef896692 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 '+' '-'