File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -84,18 +84,21 @@ void addToTmpNodes(QgsSearchTreeNode* node);
84
84
//%error-verbose
85
85
86
86
// operator precedence
87
- // all operators have left associativity
88
- // (right associtativity is used for assignment)
89
- %left ' ^'
90
- %left ' *' ' /'
91
- %left ' +' ' -'
92
- %left UMINUS // fictious symbol (for unary minus )
93
- %left COMPARISON
87
+ // all operators have left associativity, i.e. 1+2+3 traslates to (1+2)+3
88
+ // the order of operators here determines their precendence
94
89
95
- %left AND
96
90
%left OR
91
+ %left AND
97
92
%left NOT
98
93
94
+ %left COMPARISON
95
+
96
+ %left ' +' ' -'
97
+ %left ' *' ' /'
98
+ %left ' ^'
99
+ %left UMINUS // fictious symbol (for unary minus )
100
+
101
+
99
102
%%
100
103
101
104
root : search_cond { /* gParserRootNode = $1;*/ }
You can’t perform that action at this time.
0 commit comments