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;