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:
2020-11-09 15:55:23 -08:00
parent be9a659159
commit aca0b3c4c7

View File

@@ -1,9 +1,9 @@
%start Body
%left '||'
%left '&&'
%left '<' '>' '<=' '>=' '==' '!='
%left '+' '-'
%left '*' '/'
%left '<' '>' '<=' '>=' '==' '!='
%left '&&'
%left '||'
//%avoid_insert "NUM" "SYM" "STRING" "||" "&&" "<" ">" "<=" ">=" "!=" "==" "+" "-" "*" "/" "{"