Fix order of operations in the parser
Boolean operators were in the wrong order in the parser for left association. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
%start Body
|
||||
%left '||'
|
||||
%left '&&'
|
||||
%left '<' '>' '<=' '>=' '==' '!='
|
||||
%left '+' '-'
|
||||
%left '*' '/'
|
||||
%left '<' '>' '<=' '>=' '==' '!='
|
||||
%left '&&'
|
||||
%left '||'
|
||||
|
||||
//%avoid_insert "NUM" "SYM" "STRING" "||" "&&" "<" ">" "<=" ">=" "!=" "==" "+" "-" "*" "/" "{"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user