X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/6501566813190e211a55a44216044135b19259b0..905f069774cbcf94c6f46e8768e1f6a4a2e72591:/tests/calc.at diff --git a/tests/calc.at b/tests/calc.at index 26249088..03c8238f 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -106,11 +106,11 @@ static void unget_char (]AT_LEX_PRE_FORMALS[ int c); %token NUM "number" %type exp -%nonassoc '=' /* comparison */ +%nonassoc '=' /* comparison */ %left '-' '+' %left '*' '/' -%left NEG /* negation--unary minus */ -%right '^' /* exponentiation */ +%precedence NEG /* negation--unary minus */ +%right '^' /* exponentiation */ /* Grammar follows */ %%