dsw / oink-stack

Oink is a collaboration of C++ static analysis tools.
http://danielwilkerson.com/oink/index.html
153 stars 34 forks source link

Grammar railroad diagram #26

Closed mingodad closed 10 months ago

mingodad commented 10 months ago

I've just did a conversion of https://github.com/dsw/oink-stack/blob/master/elsa/cc.gr to an EBNF that can be used to generate a nice navigable railroad diagram and it can be viewd here https://mingodad.github.io/cpp-grammars/elsa-cc.gr.ebnf.xhtml , the EBNF is here https://github.com/mingodad/cpp-grammars/blob/main/elsa-cc.gr.ebnf .

Thee you'll find EBNF and railroad diagrams for other C++ grammars.

dsw commented 10 months ago

Ok. It's fun to look at. Do you need anything from me?

On Sun, Jan 7, 2024 at 4:28 AM Domingo Alvarez Duarte < @.***> wrote:

I've just did a conversion of https://github.com/dsw/oink-stack/blob/master/elsa/cc.gr to an EBNF that can be used to generate a nice navigable railroad diagram and it can be viewd here https://mingodad.github.io/cpp-grammars/elsa-cc.gr.ebnf.xhtml , the EBNF is here https://github.com/mingodad/cpp-grammars/blob/main/elsa-cc.gr.ebnf .

Thee you'll find EBNF and railroad diagrams for other C++ grammars.

— Reply to this email directly, view it on GitHub https://github.com/dsw/oink-stack/issues/26, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAL6XCOKQ66BUTCC46EHOLYNKIITAVCNFSM6AAAAABBQJHOF2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3DSMJRGA4DGOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mingodad commented 10 months ago

Thank you for reply !

It's only to acknowledge it's existence, in my opinion it's a helper to visualize/debug/develop it further.

mingodad commented 10 months ago

By the way there is a revised version of elkhound/smbase/ast/elsa here https://github.com/smcpeak/

dsw commented 10 months ago

Well Scott seems to be maintaining his own copy. He is the designer and implementer of Elkhound and is the designer and original implementer of Elsa, so this is unsurprising. Thanks for letting me know about it though.

Daniel

On Wed, Jan 10, 2024 at 1:20 AM Domingo Alvarez Duarte < @.***> wrote:

By the way there is a revised version of elkhound/smbase/ast/elsa here https://github.com/smcpeak/

— Reply to this email directly, view it on GitHub https://github.com/dsw/oink-stack/issues/26#issuecomment-1884468271, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAL6XFF6KP3J6XESCL3LLDYNZMNJAVCNFSM6AAAAABBQJHOF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUGQ3DQMRXGE . You are receiving this because you commented.Message ID: @.***>