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 #1634
Comments
Thanks for sharing, that's pretty cool! Is there an action point you are suggesting for us here? Is there an advantage for us to replace the right recursion with left recursion as you have done? I'm a bit out of my depth with yacc/bison stuff. |
For After all of the latest fixes and continuing trying to parse
And experimenting in the playground (https://mingodad.github.io/parsertl-playground/playground/) I came with this possible fix:
The above fix works on the playground and now when I looked at |
Here is the first working conversion from numeric references to named references using a script and manually fixing it. |
I appreciate the effort. That said, it doesn't seem that this works with the bison 2.3 that ships with XCode. Are named references a more recent feature? I am a bit reluctant to drop support for bison 2.3. I suppose we could require macOS users to install from homebrew, or have them use the pre-built file, but there have to be some compelling benefits. |
Yes that's a known problem, named references need a newer bison 2.5 (2011-05-14). |
I've just added this project grammar to https://mingodad.github.io/parsertl-playground/playground/ an
Yacc/Lex
compatible online editor/tester (selectPanda3d cppparser (partially working)
fromExamples
then clickParse
to see a parse tree for the content inInput source
).Notice that I've replaced right recursion by left recursion in some rules.
And here is an
EBNF
to generate a nice navigable railroad diagram:The text was updated successfully, but these errors were encountered: