> -----Original Message----- > From: [email protected] [mailto:antlr-interest- > [email protected]] On Behalf Of David Maier > Sent: Wednesday, July 07, 2010 10:18 AM > To: Andrew Haley > Cc: [email protected] > Subject: Re: [antlr-interest] > org.antlr.runtime.tree.RewriteEmptyStreamException > > Hi Andrew, > > yes it worked by using the (?) operator on one level above. However, it > seems that the problem does occur dependent on the input. So there may > be other rules in my grammar those are affected. So this is the reason > why I would appreciate that it works as expected.
It works as it should, but your expectations are not correct I am afraid. Generally you are falling over on style: X : a* b -> ^(NODE a* b) ; Rather than x : a b -> ^(NODE a* b) ; a: x* ; Then what you think happens does happen. It also removes extra method calls (generally). 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.
