Hi, 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, Marcelo On Fri, Oct 23, 2009 at 2:39 AM, Marcelo Nichele <marcelo.nich...@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 > attrValueEnd=ATTR_VALUE))* TAG_EMPTY_CLOSE > > Does anyone have any tips? > > Thanks for help, > > Marcelo > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to il-antlr-interest@googlegroups.com To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address