At 05:31 8/09/2009, Sam Barnett-Cormack wrote: >However, the rules I'll pass them to won't match EOF. > >It strikes me that all I need to do is make the token stream >wrapper *not* return an EOF. However, the docs seem to specify >that it *should* return an EOF. How, practically or ideally, >should I resolve this?
Your custom streams should return an EOF when they run out of input. It doesn't really matter (from this perspective) whether or not the rule being invoked is expecting an EOF; by default rules are not required to consume all input. (Adding EOF matching to a rule is the main way of requesting that a rule *should* try to consume all input.) 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-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 -~----------~----~----~----~------~----~------~--~---