[antlr-interest] Bytes Limit

Marcelo Nichele marcelo.nichele at gmail.com
Thu Oct 22 22:09:49 PDT 2009


I managed to reduce the size of the code a little. But, in the future
whether I want to create more rules, I'll have problems again.

Thanks for help,


On Fri, Oct 23, 2009 at 2:39 AM, Marcelo Nichele
<marcelo.nichele at gmail.com>wrote:

> Hi,
> I'm using some lexer rules such like 'aaaa', 'bbb', ... Then, the code
> generated become too big. So, I reduced some lexer rules and I moved them to
> grammar rules.
> Ex:
> TAG_START_OPEN 'link' attrUriId='uri' ATTR_EQ attrValueUri=ATTR_VALUE
> ((attrRoleId='role' ATTR_EQ attrValueRole=ATTR_VALUE) | (attrStartId='start'
> ATTR_EQ attrValueStart=ATTR_VALUE)|(attrEndId='end' ATTR_EQ
> Does anyone have any tips?
> Thanks for help,
> Marcelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091023/39eaf85d/attachment.html 

More information about the antlr-interest mailing list