Closed GoogleCodeExporter closed 9 years ago
The increase in size for the C lexer seems to be caused by the great number of
case independent keywords. The Sparql lexer had been designed with attention to
language independence. Only a few Java specific snippets are embedded in the
ANTLR lexer and grammar rules.
Attached a file, which shifts the keyword recognition into some methods written
in Java. You will notice a drastic reduction in size of the generated files
when compiling the grammar with Antlr. The generated C lexer size will be only
double the size of the lexer with target language Java. The warnings "no lexer
rule corresponding to token:" can safely be ignored!
What has to be done:
Replace the Java methods by C methods in the Sparql.g grammar.
Questions - don't hesitate to contact us.
Original comment by Juergen....@gmail.com
on 17 Dec 2011 at 1:24
Attachments:
Original issue reported on code.google.com by
todor.di...@me.com
on 20 Aug 2011 at 1:25