Re: Have we out-grown Flex?

Поиск
Список
Период
Сортировка
Искать
От
Daniel Farina
Тема
Re: Have we out-grown Flex?
Дата
в 16:57:55
Msg-id
CAAZKuFYciNpMn3YDNDgfuJJHOUstsxewSmZtT_4vrB+EtKg7JA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Have we out-grown Flex? Peter Geoghegan <peter@2ndquadrant.com>
Re: Have we out-grown Flex? Tom Lane <tgl@sss.pgh.pa.us>
Re: Have we out-grown Flex? Tom Lane <tgl@sss.pgh.pa.us>
Re: Have we out-grown Flex? james <james@mansionfamily.plus.com>
Re: Have we out-grown Flex? Daniel Farina <daniel@heroku.com>
Re: Have we out-grown Flex? james <james@mansionfamily.plus.com>
Re: Have we out-grown Flex? Robert Haas <robertmhaas@gmail.com>
Re: Have we out-grown Flex? Tom Lane <tgl@sss.pgh.pa.us>
Re: Have we out-grown Flex? Peter Geoghegan <peter@2ndquadrant.com>
Re: Have we out-grown Flex? Magnus Hagander <magnus@hagander.net>
Re: Have we out-grown Flex? Peter Geoghegan <peter@2ndquadrant.com>
Re: Have we out-grown Flex? Jeff Janes <jeff.janes@gmail.com>
Re: Have we out-grown Flex? james <james@mansionfamily.plus.com>
Re: Have we out-grown Flex? Jeff Janes <jeff.janes@gmail.com>
Re: Have we out-grown Flex? Peter Geoghegan <peter@2ndquadrant.com>
Re: Have we out-grown Flex? Jeff Janes <jeff.janes@gmail.com>
Re: Have we out-grown Flex? Bruce Momjian <bruce@momjian.us>
On Thu, May 3, 2012 at 12:51 PM, james  wrote:
> I haven't tried quex, but I have tried lemon (which can be broken out of
> SQLite) and re2c and ragel.
>
> I like ragel and lemon, but the combination supports a push-parser style
> from memory, and many tools are inconvenient unless you are prepared to suck
> in a whole message before parsing, or let the parser drive a pull loop, or
> use a coroutine structure.
>
> Could go all trendy and use a PEG tool like, er,, peg
> (http://piumarta.com/software/peg/).  (I haven't tried them tho')

I think the goal is not trendy nor easy to use (but easy to maintain,
at least...), but faster, and even then there is some doubt if any
amount of lexer optimization could possibly matter given everything
else that needs to happen to execute a query.  Better error messages
(with position information) might be a functional enhancement that I'd
like, but I don't think flex is limiting in that regard; rather, a lot
more information already exposed by flex would have to be passed
through the semantic analyzer.

Provided it could matter, are these tools faster than flex? My
limited understanding is "probably not".

-- 
fdr

В списке pgsql-hackers по дате отправления
От: Josh Berkus
Дата:
От: james
Дата:
Сообщение: Re: Have we out-grown Flex?
FAQ