-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grammar railroad diagram #57
Comments
Looking through the documentation I can see that almost all pieces are already there, bellow is a manual translation for the https://github.com/melt-umn/copper/blob/develop/doc/manual/CopperUserManual.md#recognizer-without-semantic-actions example:
|
And here is the manual fixes applied to the output of Copy and paste the
|
Thanks for the interest and pointer to the railroad diagram maker. We'll take a look sometime - maybe at our next "hackathon". |
Not at all and thanks for your great work ! And here is the manual fixes applied to the output of selfcompile Copy and paste the
|
I just update the |
And here is an Copy and paste the
|
Here is the Copy and paste the
|
I've created a script to extract an
It uses |
Would be nice if
copper
could also generate anEBNF
as understood by https://www.bottlecaps.de/rr/ui to generate railroad diagrams (https://en.wikipedia.org/wiki/Syntax_diagram).I extended
bison
,byacc
,lemon
andbtyacc
to do so and can be seen here https://github.com/mingodad/lalr-parser-test , alsoCocoR
here https://github.com/mingodad/CocoR-Java ,unicc
here https://github.com/mingodad/unicc , andpeg/leg
here https://github.com/mingodad/peg .Would be nice to have it output a consolidated
EBNF
to have a full global view of the final grammar because indirect usage ofcopper
,silver
andableC
uses several pieces to compose the final grammar.The text was updated successfully, but these errors were encountered: