Antlr-sparql-grammar is a project mainly written in ..., it's free.
sparql 1.1 antlr grammar
This project includes parser and lexer grammars in ANTLR-specific syntax for the following SPARQL specifications: