Re: Perl 5.12 complains about ecpg parser-hacking scripts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Perl 5.12 complains about ecpg parser-hacking scripts
Дата
Msg-id 10498.1295803391@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Perl 5.12 complains about ecpg parser-hacking scripts  (Andy Colson <andy@squeakycode.net>)
Ответы Re: Perl 5.12 complains about ecpg parser-hacking scripts  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
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.

> I'm not sure rule name is the proper words.  In gram.y we have:

"Production" is the standard technical name, but on the other hand the
bison documentation seems to consistently use the word "rule", so
there's probably nothing wrong with doing so here too.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: sepgsql contrib module
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Perl 5.12 complains about ecpg parser-hacking scripts