Fork me on GitHub
#instaparse
<
2017-11-01
>
Empperi13:11:01

does someone happen to know if there is a ready tool to convert W3C EBNF declarations to format which instaparse understands?

Empperi13:11:21

specifically I’m looking for SPARQL ebnf declarations which I could feed into instaparse

Empperi13:11:33

I would also accept an ANTLR -> instaparse converter

novel16:11:09

instaparse understands the SPARQL grammar from w3c. you just have to adapt the production rules for the terminals so that instaparse will detect them as regexes. See for instance https://github.com/mladvladimir/sparqlom/blob/master/resources/sparql.ebnf