Re: Grammar railroad diagram - Mailing list pgsql-hackers

From Domingo Alvarez Duarte
Subject Re: Grammar railroad diagram
Date
Msg-id ba524cb5-fc98-4cd6-6c64-7ee198bdcc6b@gmail.com
Whole thread Raw
In response to Re: Grammar railroad diagram  (Andres Freund <andres@anarazel.de>)
Responses Re: Grammar railroad diagram  (Corey Huinker <corey.huinker@gmail.com>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Query about time zone patterns in to_char
Next
From: Zhihong Yu
Date:
Subject: short circuit suggestion in find_hash_columns()