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/tokens.mly | |
parent | 3d74fbfd4bd173ae1aac4bf808b00275d48c4be4 (diff) |
New precedence test
Diffstat (limited to 'lib/tokens.mly')
-rw-r--r-- | lib/tokens.mly | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/tokens.mly b/lib/tokens.mly index 1c199fa..9ac4b10 100644 --- a/lib/tokens.mly +++ b/lib/tokens.mly @@ -55,15 +55,17 @@ in favor of shifting. %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 p_variable +%left OR +%left AND +%left EQUAL +%left GT LT +%left EXCLAMATION %left PLUS MINUS %left STAR DIV %left MOD %left FUNCTION -%left L_PAREN +%left L_PAREN %right R_PAREN %left COMA %left KEYWORD |