Open mingodad opened 3 months ago
I had some time to kill in the TGV from Paris to Munich, so I added your grammar file to the repo and made some improvements. It is still far from finished though: https://github.com/M4GNV5/PointerScript/blob/master/grammar.ebnf
Putting this into the railroad generator does produce some cool looking diagrams for Expression
though.
Maybe at some point the ebnf grammar & railroad diagrams can be used for the language doc
Thank you for reply !
Noticed that the EBNF
accepted by railroad diagram tool doesn't accept escaped chars:
"\"" .* "\""
Can be :
'"' .* '"'
["] .* ["]
Would be nice to have an
EBNF
accpeted by (IPV4) https://rr.red-dove.com/ui or (IPV6) https://www.bottlecaps.de/rr/ui to generate a nice navigable railroad diagram forPointerScript
, I started one going through the code in https://github.com/M4GNV5/PointerScript/blob/master/parser/ast.c (see bellow) but it has many flaws due to my interpretation so far.