You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would really help to have a grammar instead of following the C parser. I know it's a simple recursive-descent, but code is always more complicated to the eye than what's in lua-parser.ly.
Having more parsers also opens up the opportunity to get code formatters. A port of prettier-lua to ljs would... fix some complaints about how many people prefers to have a space after flow-control keywords and no space before the : in typing.
Thank you for your interest and feedback !
Here you have an EBNF grammar compatible with https://www.bottlecaps.de/rr/ui for railroad diagram generation (I need to add it to the repository eventually). Copy the grammar bellow and paste on the Edit Grammar tab then switch to the View Diagram tab on https://www.bottlecaps.de/rr/ui (any feedback is welcome).
Activity
mingodad commentedon Jun 9, 2020
Probably yes but I do not need it, could you do it too and share it ?
Shadowblitz16 commentedon Nov 24, 2020
I would like this too for love2d
Artoria2e5 commentedon May 19, 2021
It would really help to have a grammar instead of following the C parser. I know it's a simple recursive-descent, but code is always more complicated to the eye than what's in
lua-parser.ly.Having more parsers also opens up the opportunity to get code formatters. A port of prettier-lua to ljs would... fix some complaints about how many people prefers to have a space after flow-control keywords and no space before the
:in typing.mingodad commentedon May 19, 2021
Thank you for your interest and feedback !
Here you have an EBNF grammar compatible with https://www.bottlecaps.de/rr/ui for railroad diagram generation (I need to add it to the repository eventually). Copy the grammar bellow and paste on the
Edit Grammartab then switch to theView Diagramtab on https://www.bottlecaps.de/rr/ui (any feedback is welcome).