File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
6
6
7
7
## [ Unreleased]
8
+ ### Fixed
9
+ - Fixed operator precedence
10
+ [ #89 ] ( https://github.com/phalcon/php-zephir-parser/issues/89 )
11
+
8
12
## [ 1.3.3] - 2019-12-10
9
13
### Added
10
14
- Added PHP 7.4 support
Original file line number Diff line number Diff line change 31
31
%name xx_
32
32
33
33
// Define operator precedence early so that this is the first occurrence
34
- // of the operator tokens in the grammer . Keeping the operators together
34
+ // of the operator tokens in the grammar . Keeping the operators together
35
35
// causes them to be assigned integer values that are close together,
36
36
// which keeps parser tables smaller.
37
37
//
46
46
%left OR .
47
47
%left AND .
48
48
%left INSTANCEOF .
49
- %left BITWISE_OR BITWISE_XOR BITWISE_SHIFTLEFT BITWISE_SHIFTRIGHT .
50
- %left EQUALS IDENTICAL LESS GREATER LESSEQUAL GREATEREQUAL NOTIDENTICAL NOTEQUALS .
49
+ %left BITWISE_OR .
50
+ %left BITWISE_XOR .
51
+ %left BITWISE_AND .
52
+ %left EQUALS IDENTICAL NOTIDENTICAL NOTEQUALS .
53
+ %left LESS GREATER LESSEQUAL GREATEREQUAL .
54
+ %left BITWISE_SHIFTLEFT BITWISE_SHIFTRIGHT .
51
55
%left ADD SUB CONCAT .
52
56
%left MUL DIV MOD .
53
57
%right ISSET FETCH EMPTY .
57
61
%right NEW .
58
62
%right NOT .
59
63
%right BITWISE_NOT .
60
- %left BITWISE_AND .
61
64
%right PARENTHESES_CLOSE .
62
65
%right SBRACKET_OPEN .
63
66
%right ARROW .
You can’t perform that action at this time.
0 commit comments