aboutsummaryrefslogtreecommitdiff
path: root/lib/tokens.mly
diff options
context:
space:
mode:
authorChimrod <>2023-09-22 18:51:45 +0200
committerChimrod <>2023-09-22 18:51:45 +0200
commit557d60d5df5258a29ce964fac1f5ffdc625dcb2a (patch)
tree655f756fbbc2fa906eeef8d3f3a0af42af36c6f8 /lib/tokens.mly
parent1aaf8ae4d48bb9404b8faef2ba55024a6d6bac23 (diff)
Correction in precedence order
Diffstat (limited to 'lib/tokens.mly')
-rw-r--r--lib/tokens.mly2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tokens.mly b/lib/tokens.mly
index 7f907a3..7720440 100644
--- a/lib/tokens.mly
+++ b/lib/tokens.mly
@@ -51,13 +51,13 @@ in favor of shifting.
(* Exclamation should have the lower priority because the comments shall never
take place of the statements
*)
-%right EXCLAMATION
%right NO
(* The priority for the variable should be lower than the equality priority
if I want to allow declare new variables *)
%nonassoc p_variable
%left AND OR
%right EQUAL GT LT GTE LTE
+%right EXCLAMATION
%left PLUS MINUS
%left STAR DIV
%left MOD