OK, a with a bit more delving I found the problem was caused by the CommonTreeNodeStream stream being emptied after the first run of the tree walker, so calling reset didn't achieve much. This differs from ANTLR 3.1.1 behaviour but doesn't seem to be in the release notes for 3.1.2 or 3.1.3 (someone please let me know if I'm missing the obvious).
Give the tree walker a BufferedTreeNodeStream stream instead of CommonTreeNodeStream seems to fix the problem. Is this now the correct practice where a tree walker is to be invoked repeatedly ? cheers Michael 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 -~----------~----~----~----~------~----~------~--~---
