Closed mingodad closed 1 week ago
GQL standard maintainers provide a railroad diagram at https://opengql.github.io/railroad
Thank you for reply ! It seems a bit funny because there is several rules that aren't referenced on those grammars.
Right - the diagrams are for an ANTLR grammar at https://github.com/opengql/grammar that was generated and tweaked from the EBNF for GQL - I expect there are some differences - but ANTLR supports extended BNF features so I suppose it shouldn't be too far off
Closing - feel free to open a new discussion for general comments
Using a script using
Lua
string patterns we can get anEBNF
understood by (IPV6) https://www.bottlecaps.de/rr/ui or (IPV4) https://rr.red-dove.com/ui to generate a nice navigable railroad diagram see instructions bellow (attached the fullEBNF
)Script:
gqlgrammar.quotedliterals.txt.ebnf.zip