Re: How to build a new grammer for pg?

Поиск
Список
Период
Сортировка
От Jonah H. Harris
Тема Re: How to build a new grammer for pg?
Дата
Msg-id CADUqk8XrCtHjNGoC7yoN=omCZTwMO2=L=XK_R_Jdi0HB_-PFjg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to build a new grammer for pg?  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: How to build a new grammer for pg?  (Hannu Krosing <hannuk@google.com>)
Список pgsql-hackers
On Tue, Aug 1, 2023 at 3:45 PM Andrew Dunstan <andrew@dunslane.net> wrote:

Or to enable some language other than SQL (QUEL anyone?)


A few years ago, I got a minimal POSTQUEL working again to release as a patch for April Fools' Day, which I never did. I should dig that up somewhere :)

Anyway, as far as OP's original question regarding replacing the grammar, there are a couple of such implementations floating around that have done that. But, I actually think the pluggable parser patches were good examples of how to integrate a replacement parser that generates the expected parse tree nodes for anyone who wants to do their own custom parser. See Julien Rouhaud's SQLOL in the "Hook for extensible parsing" thread and Jim Mlodgenski's "Parser Hook" thread.

--
Jonah H. Harris

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] Support % wildcard in extension upgrade filenames
Следующее
От: "Finnerty, Jim"
Дата:
Сообщение: Re: POC, WIP: OR-clause support for indexes