Re: and! Bison vs yacc Re: Flex vs Lex

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: and! Bison vs yacc Re: Flex vs Lex
Дата
Msg-id 14146.966805207@sss.pgh.pa.us
обсуждение исходный текст
Ответ на and! Bison vs yacc Re: Flex vs Lex  (Alfred Perlstein <bright@wintelcom.net>)
Список pgsql-hackers
Alfred Perlstein <bright@wintelcom.net> writes:
> Basically the configure script ought to abort if bison isn't found,

Certainly not, seeing as how the standard distribution doesn't require
the recipient to run bison at all.  It's only an issue if you are
working from CVS sources.  Even then, there are vendor yaccs that will
work (possibly after some YFLAGS-tuning), and it is not configure's
charter to prevent you from using them.  I am not sure there are any
non-flex lexes that will work, though.

The nasty part of this is that some OSes seem to have flex or bison
installed only under the name 'lex' or 'yacc'.  Probably what configure
should do is 1. Search for flex; if found, use it. 2. Search for lex; if found, test to see if it's really flex    (eg,
bychecking "lex --version" output).
 
and likewise for bison (except go ahead and try to use yacc even
if it's not bison).
        regards, tom lane


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

Предыдущее
От: "David Lloyd-Jones"
Дата:
Сообщение: How Do You Pronounce "PostgreSQL"?
Следующее
От: Ben Adida
Дата:
Сообщение: Re: Bug tracking (was Re: +/- Inf for float8's)