Revert "Revert ".control and `B' parser, fix precedence of '-' versus '^'""

This reverts commit adc1546e59.
This commit is contained in:
Holger Vogt 2021-10-03 15:51:42 +02:00
parent 1cabf50b14
commit e1e97a4822
2 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@
%right ','
%left '-' '+'
%left '*' '/' '%'
%right '^' /* exponentiation */
%left NEG /* negation--unary minus */
%right '^' /* exponentiation */
%left '[' ']'
%initial-action /* initialize yylval */

View File

@ -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 */
{