diff options
author | Chimrod <> | 2023-09-29 16:40:36 +0200 |
---|---|---|
committer | Chimrod <> | 2023-09-29 17:22:59 +0200 |
commit | 93179b90d8b1006001ce53310a6b01ba9f673fb7 (patch) | |
tree | e10f37ceb84b6562dbf6b23941eca3cde44b0792 /lib/qsp_expression.mly | |
parent | 3d74fbfd4bd173ae1aac4bf808b00275d48c4be4 (diff) |
New precedence test
Diffstat (limited to 'lib/qsp_expression.mly')
-rw-r--r-- | lib/qsp_expression.mly | 3 |
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 |