-
Notifications
You must be signed in to change notification settings - Fork 162
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
Squirrel grammar #237
Comments
Looking through the compiler code it seems that there is a mistake here:
|
Or else the previous ones :
|
My bad they are calling different functions to generate distinct code ! |
It seems that the for loops here are meaningless:
|
Following the code I discovered that in literal arrays the comma separator is optional, didn't knew this before.
|
Yes, it was intended. In retrospect, I don't think it was a good decision but it really hasn't created any issue in my experience. FYI, this is also valid for function call parameters. |
Thank you for reply an clarify it ! |
I'm testing this interesting parser generator https://ssw.jku.at/Research/Projects/Coco/ and as exercise I'm building a Squirrel/SquiLu grammar with it.
As usual any feedback is welcome !
This is the initial CocoR grammar just in case someone else want to try (edited with my latest):
And here is the Squirrel EBNF accepted by https://www.bottlecaps.de/rr/ui to create railroad diagrams, copy the grammar bellow and paste on the
Edit Grammar
tab then switch to theView Diagram
tab to view the railroad diagram.The text was updated successfully, but these errors were encountered: