Re: Erroring out on parser conflicts

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Erroring out on parser conflicts
Date: 2008-11-25 13:09:37
Message-ID: 14585.1227618577@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> While hacking on parser/gram.y just now I noticed in passing that the
> automatically generated ecpg parser had 402 shift/reduce conflicts.
> (Don't panic, the parser in CVS is fine.) If you don't pay very close
> attention, it is easy to miss this. Considering also that we frequently
> have to educate contributors that parser conflicts are not acceptable,
> should we try to error out if we see conflicts?

Would "%expect 0" produce the same result in a less klugy way?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-11-25 13:23:57 Re: blatantly a bug in the documentation
Previous Message Hiroshi Saito 2008-11-25 13:03:52 Re: [PATCHES] Solve a problem of LC_TIME of windows.