summaryrefslogtreecommitdiff
path: root/usr.bin/bc/bc.y
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2003-11-13 19:05:33 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2003-11-13 19:05:33 +0000
commit730d32cc92b0304e19f1a422a0e8144a96a59e34 (patch)
tree7eaa2b0b26e93d6faf123bd9d20c8dff24d1bbe0 /usr.bin/bc/bc.y
parent7022f11366bb9cd8f220d2251b98e90294e23c8d (diff)
Exponentiation operatator ^ is right associative.
Diffstat (limited to 'usr.bin/bc/bc.y')
-rw-r--r--usr.bin/bc/bc.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/bc/bc.y b/usr.bin/bc/bc.y
index 91438ed20d8..434ba262e02 100644
--- a/usr.bin/bc/bc.y
+++ b/usr.bin/bc/bc.y
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: bc.y,v 1.16 2003/11/11 19:49:02 otto Exp $ */
+/* $OpenBSD: bc.y,v 1.17 2003/11/13 19:05:32 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -31,7 +31,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: bc.y,v 1.16 2003/11/11 19:49:02 otto Exp $";
+static const char rcsid[] = "$OpenBSD: bc.y,v 1.17 2003/11/13 19:05:32 otto Exp $";
#endif /* not lint */
#include <ctype.h>
@@ -127,7 +127,7 @@ extern char *__progname;
%right <str> ASSIGN_OP
%left PLUS MINUS
%left MULTIPLY DIVIDE REMAINDER
-%left EXPONENT
+%right EXPONENT
%nonassoc UMINUS
%nonassoc INCR DECR