aboutsummaryrefslogtreecommitdiff
path: root/lib/qsp_expression.mly
diff options
context:
space:
mode:
Diffstat (limited to 'lib/qsp_expression.mly')
-rw-r--r--lib/qsp_expression.mly3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/qsp_expression.mly b/lib/qsp_expression.mly
index 3d758c4..06cfadd 100644
--- a/lib/qsp_expression.mly
+++ b/lib/qsp_expression.mly
@@ -36,7 +36,6 @@
op = binary_operator
expr2 = expression
{ Analyzer.Expression.boperator $loc op expr1 expr2 }
- %prec EQUAL
| v = LITERAL { Analyzer.Expression.literal $loc v }
| i = INTEGER { Analyzer.Expression.integer $loc i }
| v = variable { Analyzer.Expression.ident v }
@@ -64,11 +63,11 @@ unary_operator:
| MOD { T.Mod }
| GT { T.Gt }
| LT { T.Lt }
+ | AND { T.And }
| GT EQUAL { T.Gte }
| LT EQUAL { T.Lte }
| EQUAL GT { T.Gte }
| EQUAL LT { T.Lte }
- | AND { T.And }
| OR { T.Or }
(** Declare a variable, either in the assignation (let var = …) or as a