Re: Grammar railroad diagram

Поиск
Список
Период
Сортировка
От Domingo Alvarez Duarte
Тема Re: Grammar railroad diagram
Дата
Msg-id ff6e5dee-79bf-c262-f8c4-88ec99c5479d@gmail.com
обсуждение исходный текст
Ответ на Re: Grammar railroad diagram  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Hello Andres !

There is two ways to achieve it:

-1 I just add the bison grammar in CocoR format here 
https://github.com/mingodad/CocoR-CPP in the examples folder.

-2 I created an small extension to Bison to do the same and published 
the patch here 
https://github.com/mingodad/bison/commit/da84329ebe5f4bc111ef34b2d46088b655a217f3 
(bison -e yourgramar.y)

And optionally to have the best railroad diagram we need to add the 
"Tokens" manually.

Cheers !

On 9/7/21 4:36, Andres Freund wrote:
> Hi,
>
> On 2021-07-03 10:39:02 +0200, Domingo Alvarez Duarte wrote:
>> I've done a experimental tool to convert bison grammars to a kind of EBNF
>> understood by https://www.bottlecaps.de/rr/ui
> It'd be nice if you could share that tool. The diagrams this can generate
> are neat...
>
> Greetings,
>
> Andres Freund



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

Предыдущее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: Incorrect usage of strtol, atoi for non-numeric junk inputs
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: [PoC] Improve dead tuple storage for lazy vacuum