Re: Grammar railroad diagram

From: Domingo Alvarez Duarte <mingodad(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Grammar railroad diagram
Date: 2021-07-09 15:00:29
Message-ID: ba524cb5-fc98-4cd6-6c64-7ee198bdcc6b@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zhihong Yu 2021-07-09 15:20:04 short circuit suggestion in find_hash_columns()
Previous Message Tomas Vondra 2021-07-09 14:43:46 Re: Query about time zone patterns in to_char