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
This commit is contained in:
volth 2018-07-21 15:24:51 +00:00 committed by GitHub
parent 1b34b69b45
commit 85fe4a819c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 '+' '-'