Dear RDFlibbers,
Does anyone have either a plain EBNF grammar for SPARQL or a Lark Python grammar file for it?
I am trying to build up a canonical more modern PEG for SPARQL to perhaps slot in to RDFLib.
If I really can't find one, I'm going to have to either convert the W3C EBNF to plain EBNF and use something like Tatsu (
https://pypi.org/project/TatSu/) or convert straight to a Lark Python grammar and use Lark as I need a Python SPARQL grammar checker.
Any other suggestions for SPARQL grammar use in Python welcome!
Thanks, Nick