Hello Andres !
Another way that I tested and it's working is to use
https://www.bottlecaps.de/convert/ paste the postgresql grammar there
and press "convert" and after press "view diagram".
Again optionally manually add the Tokens to a better diagram !
====
// Tokens from postgresql-13.3/src/include/parser/kwlist.h
ABORT_P ::= "abort"
ABSOLUTE_P ::= "absolute"
ACCESS ::= "access"
ACTION ::= "action"
...
====
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