Re: help with bison

From: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
To: "Gavin Sherry" <swm(at)linuxworld(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: help with bison
Date: 2002-04-11 16:16:34
Message-ID: 20020411121634.72e2c847.nconway@klamath.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 11 Apr 2002 15:02:49 +1000 (EST)
"Gavin Sherry" <swm(at)linuxworld(dot)com(dot)au> wrote:
> On Wed, 10 Apr 2002, Neil Conway wrote:
>
> > Hi all,
> >
> > I'm working on a fairly large patch (cleaning up Karel Zak's
> > PREPARE/EXECUTE work), and I'm having some problems with bison (I'm
> > a yacc newbie). In fact, my grammar currently has an obscene
> > 20 shift/reduce and 4 reduce/reduce conflicts!
>
> Your first set of problems is coming from PrepareStmt:
> [...]

> Your second problem is in ExecuteStmt:
> [...]

Great, thanks Gavin! (I owe you a beer!)

I re-arranged PrepareStmt as you suggested, as well as
ExecuteStmt, and the conflicts have disappeared. I'm not sure
if the new syntax is ideal, but I'm happy to leave it as it is
until I've got the patch mostly working. I'd welcome any
suggestions for improvements to the syntax that still allow
for sane parsing.

Thanks again,

Neil

--
Neil Conway <neilconway(at)rogers(dot)com>
PGP Key ID: DB3C29FC

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-04-11 16:22:35 Re: RFC: Restructuring pg_aggregate
Previous Message Tom Lane 2002-04-11 16:14:41 Re: 7.3 schedule