Sam Harwell schrieb:
> The latest version (as of last week) of antlr 3.1 source results in a 
> /serious/ reduction in the size of generated lexers.
> 
>  
> 
> Sam

That's due to the integration of (de)compression algorithms from the 
Java target. Doesn't have to mean that these fixes attack the actual 
problem here.

Johannes
> 
>  
> 
> ------------------------------------------------------------------------
> 
> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Kamal Verma
> *Sent:* Tuesday, May 13, 2008 4:39 PM
> *To:* [email protected]
> *Subject:* [antlr-dev] generating code from grammar (CSS) and large code.
> 
>  
> 
> Problem generating code from grammar.
> 
> CSS.g:203:2: *The following alternatives are unreachable: *5,6,7,11,12
> 
> I am having trouble generating the code. Any help is very much 
> appreciated. Also if anybody have a CSS parser created please share :-).
> 
> Somehow it generated the code but size of code is too large. ~80k lines.
> 
> --------------
> $ wc -l *
>     296 CSS.g
>      97 CSS.tokens
>   79701 CSSLexer.cs
>    1925 CSSParser.cs
>     236 CSS__.g
>   82255 total
> --------------
> 
> Attached it the v3 grammar file.
> Original grammar: http://www.antlr.org/share/1126882028006/css2.1.g
> Grammar specs: http://www.w3.org/TR/CSS21/grammar.html
> 
> Any help is greatly appreciated.
> -Kamal
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> antlr-dev mailing list
> [email protected]
> http://www.antlr.org:8080/mailman/listinfo/antlr-dev

_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org:8080/mailman/listinfo/antlr-dev

Reply via email to