-
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 #41
Comments
|
And here the
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've just added the grammar/lexer of this project to https://mingodad.github.io/parsertl-playground/playground/ an
Yacc/Lex
compatible online editor/interpreter (selectQasm parser (be patient) (partially working)
fromExamples
then clickParse
to see a parse tree for the content inInput source
) and also generated anEBNF
understood by https://github.com/GuntherRademacher/rr to generate a nice navigable railroad diagram (see next comment with instructions at the top).In doing so I've noticed that the lexer seems to be reused from another project and has several unused tokens and several duplicates for other tokens, the parser grammar seems to be generated from a tool that inline/expand several rules (maybe https://github.com/BNFC/bnfc ?) what make the grammar bigger and slower.
I hope https://mingodad.github.io/parsertl-playground/playground/ can help develop/test/debug this project grammar.
The text was updated successfully, but these errors were encountered: