[antlr-interest] Huge tables in C lexers

Borneq a.moderacja at gmail.com
Fri Nov 9 10:39:07 PST 2012


I compile sample lexer from http://www.antlr.org/wiki/display/ANTLR3/Parsing+XML
Java target lexer has 33.8 K, C#: 35.9 K, but if I write in XMLLexer.g :
options {
	language=C;
}
XMLLexer.c has 1219 K (!)
main size are tables in file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XMLLexer.g
Type: application/octet-stream
Size: 829 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20121109/43e2ade6/attachment.obj 


More information about the antlr-interest mailing list