This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] suppress shift/reduce conficts in p-exp.y
- From: Pierre Muller <muller at cerbere dot u-strasbg dot fr>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 18 Apr 2002 17:18:49 +0200
- Subject: [PATCH] suppress shift/reduce conficts in p-exp.y
The following patch suppresses the
famous 21 shift/reduce conflicts present in p-exp.y
source file.
I searched for this for a big while ....
ChangeLog entry:
2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
* p-exp.y: Add precedence rule for '^' token.
This removes the shift/reduce conflicts.
Remove the comment concerning these shift/reduce conflicts.
Index: p-exp.y
===================================================================
RCS file: /cvs/src/src/gdb/p-exp.y,v
retrieving revision 1.8
diff -u -p -r1.8 p-exp.y
--- p-exp.y 9 Apr 2002 10:52:41 -0000 1.8
+++ p-exp.y 18 Apr 2002 15:18:03 -0000
@@ -37,8 +37,7 @@ Foundation, Inc., 59 Temple Place - Suit
too messy, particularly when such includes can be inserted at random
times by the parser generator. */
-/* FIXME: there are still 21 shift/reduce conflicts
- Other known bugs or limitations:
+/* Known bugs or limitations:
- pascal string operations are not supported at all.
- there are some problems with boolean types.
- Pascal type hexadecimal constants are not supported
@@ -212,6 +211,7 @@ parse_number (char *, int, int, YYSTYPE
%left '*' '/'
%right UNARY INCREMENT DECREMENT
%right ARROW '.' '[' '('
+%left '^'
%token <ssym> BLOCKNAME
%type <bval> block
%left COLONCOLON
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99