[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grammar railroad diagram

From: Jose E. Marchesi
Subject: Re: Grammar railroad diagram
Date: Thu, 23 Dec 2021 14:44:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi Domingo.

> I just found out about this project and looking around I found that
> it's using flex/bison for the parser and using this tool 
> https://www.bottlecaps.de/convert/ and manually adding the tokens from
> pkl-lex.l we have an EBNF accepted by https://www.bottlecaps.de/rr/ui
> to generate a railroad diagram 
> (https://en.wikipedia.org/wiki/Syntax_diagram) for the grammar (see
> bellow), copy and paste the EBNF shown bellow on 
> https://www.bottlecaps.de/rr/ui in the tab "Edit Grammar" then click
> the tab "View Diagram".
> I think that it's useful to give a global view of the grammar,
> documentation, ...

Thanks for the pointer.  I just tried it and the diagrams are really

reply via email to

[Prev in Thread] Current Thread [Next in Thread]