The SPARQL query language for RDF is designed to meet the use cases and requirements identified by the RDF Data Access Working Group in RDF Data Access Use Cases and Requirements. sparkle-g (SPARQL Grammar) is a SPARQL's ANTLR v3 cross-platform grammar.
The sparkle-g project is part of Asemantics Open Source Software
The Project Page is published on ANTLR grammar list, check it out on SPARQL grammar page.