Hi Chris, sorry, forgot to send to the list the first time!
On Tue, Mar 9, 2010 at 4:41 PM, Christoph Schinko <c.schi...@cgv.tugraz.at>wrote: > Hi Bart! > > Thanks for the quick answer! Adding an EOF to the rule solves the issue in > the toy example. Unfortunately we are using custom token label types and are > now getting a ClassCastException. It seems that we now have the problem > mentioned here: > > http://www.antlr.org/pipermail/antlr-interest/2009-November/036712.html > > Any thoughts on that? > > Unfortunately, I don't... I presume you read that entire thread, if not, a (possible) solution is given here: http://www.antlr.org/pipermail/antlr-interest/2009-November/036719.html Best of luck! Regards, Bart. > > On 09.03.2010 15:04, Bart Kiers wrote: > > Hi Chris, > > Since the input '<<<<<<< .mine' does not contain any illegal tokens, the > parser just stops parsing since (statement)* will also match nothing. You'll > want to "tell" your parser to continue parsing all the way to the end of > your token stream. Do that by adding an EOF to the end of your entry-point: > presumably the source parser rule: > > source > : (statement)* EOF > ; > > Regards, > > Bart. > > 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 il-antlr-inter...@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.