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