diff options
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 |