Re: Perl 5.12 complains about ecpg parser-hacking scripts
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andy Colson <andy@squeakycode.net>, Andrew Dunstan <andrew@dunslane.net>, kris@shannon.id.au, pgsql-hackers@postgresql.org
Date: 2011-01-25T22:43:36Z
Lists: pgsql-hackers
On sön, 2011-01-23 at 12:23 -0500, Tom Lane wrote: > Andy Colson <andy@squeakycode.net> writes: > > Is there anyway to make bison/yacc/gcc/etc spit out the rule names? > > bison -v produces a debug output file that includes nicely cleaned-up > versions of all the rules. But it includes a lot of other stuff too, > and I'm not at all sure that the file format is stable across bison > versions, so maybe depending on that isn't a hot idea. Having maintained a gram.y -> keywords.sgml script based on that idea for N years, I can report that this is not stable enough to work here.