diff --git a/src/frontend/parse-bison.y b/src/frontend/parse-bison.y index fc74616e1..0736466de 100644 --- a/src/frontend/parse-bison.y +++ b/src/frontend/parse-bison.y @@ -90,8 +90,8 @@ %right ',' %left '-' '+' %left '*' '/' '%' -%left NEG /* negation--unary minus */ %right '^' /* exponentiation */ +%left NEG /* negation--unary minus */ %left '[' ']' %initial-action /* initialize yylval */ diff --git a/src/spicelib/parser/inpptree-parser.y b/src/spicelib/parser/inpptree-parser.y index 1dde6a591..7247d5d4b 100644 --- a/src/spicelib/parser/inpptree-parser.y +++ b/src/spicelib/parser/inpptree-parser.y @@ -63,8 +63,8 @@ %left TOK_LE TOK_LT TOK_GE TOK_GT %left '-' '+' %left '*' '/' -%left NEG '!' /* negation--unary minus, and boolean not */ %left '^' /* exponentiation */ +%left NEG '!' /* negation--unary minus, and boolean not */ %initial-action /* initialize yylval */ {