Anders Hessellund wrote: > Hi, > > I've experienced a strange thing in my grammar. I need a token for the > special character ' > > If I specify it like this: > > PLING > : '\'' > ; > > I get an OutOfMemoryException during parsing. > > But if I specify it like this > > PLING > : '\u0027' > ; > > Everything works fine. > > Is this a bug or a feature? It sounds like the interaction of this rule with some other rule. Do you perchance have another rule that can match an empty sequence? Something like:
ID : LETTER* ; Which should be ID : LETTER+: We won't be able to help you with only the information you provide - best to post the grammar if you can. Jim List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
