Michael Meskes <meskes(at)postgresql(dot)org> writes:
> On Mon, May 26, 2008 at 04:15:18PM -0400, Tom Lane wrote:
>> AFAIK bison doesn't have an "include" capability, so I'm not sure how
>> you plan to make that work?
> You found the weak part in my idea. :-)
> How about a small perl script that is run before bison and creates the
> real grammar file?
If we were going to do that, I'd want it to go all the way and somehow
generate the common parts of the two .y files from a single source.
That'd be enough of a step forward that it would be worth whatever
ugliness is needed to make it happen ...
regards, tom lane