From 0731e40e6ad47cd37f3a77cc922eda1b8713744b Mon Sep 17 00:00:00 2001 From: Jacob Date: Sat, 4 Jan 2025 14:01:05 -0500 Subject: [PATCH] Fixed precedence. --- src/grammar.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grammar.y b/src/grammar.y index c3697cd..5ec3dd4 100644 --- a/src/grammar.y +++ b/src/grammar.y @@ -35,8 +35,8 @@ %token NL -%left DIV PLUS MULT SUB - +%left PLUS SUB +%left MULT DIV %precedence NEG %type num;